gitlab-plugin icon indicating copy to clipboard operation
gitlab-plugin copied to clipboard

400 Bad Request - No required SSL certificate was sent

Open rahst12 opened this issue 6 years ago • 1 comments

Before submitting an issue I have first:

  • [X] read the documentation on the homepage
  • [X] searched for similar already existing issue
  • [X] confirmed that my GitLab webhook is using the http://JENKINS_URL/project endpoint and not the http://JENKINS_URL/job endpoint

Issue

Context

  • Gitlab plugin version: 1.5.11
  • Gitlab version: 11.7.4-ee
  • Jenkins version: 2.169
  • Job type: Pipeline

Logs & Traces

com.dabsquared.gitlabjenkins.gitlab.api.impl.ResteasyGitLabClientBuilder$LoggingFilter filter
Call GitLab:
HTTP method: GET
URL: https://gitlab-ee-internal/api/v4/user
Request headers: [
Accept = [application/json],
PRIVATE-TOKEN = [****FILTERED****]
]
com.dabsquared.gitlabjenkins.gitlab.api.impl.ResteasyGitLabClientBuilder$LoggingFilter filter
Got response from GitLab:
URL: https://gitlab-ee-internal/api/v4/user
Status: 400 Bad Request
Response headers: [
Connection = [close],
Content-Length = [246],
Content-Type = [text/html],
Date = [ Wed, 03 Apr 2019 20:36:49 GMT],
Server = [nginx]
]
Response Body: <html>
<head><title>400 No required SSL certificate was sent</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<center>No required SSL certificate was sent</center>
<hr><center>nginx</center>
</body>
</html>

Problem description

Describe your problem in a meaningful way:

  • I'm trying to test the connection in Jenkins->Manage Jenkins->Configure System: GitLab. I've inserted the Connection name, GitLab host URL, and Credentials with the API token. I click the Test Connection button, and the above error happens.
  • I'm expecting this to successfully connect to GitLab. Using a curl command to verify this, the Jenkins server certs are able to access https://gitlab-ee-internal/api/v4/user with the Private Token and successfully return back a response. Am I missing a configuration setting to tell Jenkins to use server certs with the GitLab plugin?

Thanks for any help!

rahst12 avatar Apr 03 '19 21:04 rahst12

edit the /etc/gitlab/gitlab.rb, nginx['ssl_verify_client'] = "on" -> nginx['ssl_verify_client'] = "off"

if you want to webstation public, you can do this.

ghost avatar Dec 26 '23 08:12 ghost