GitLab CI OAuth Issues

We updated our CI to use https, added the certs to the ssl/ folder and I deleted GitLab CI as an OAuth app and generated a new id and secret for it and reset it. Now, for all users, the redirect comes back to a 500 error, and now projects that are linked to the CI can communicate with the CI server. We see this error on the CI status

Cannot connect to the CI server. Please check your settings and try again.

I see this error in the gitlab-ci production.log

Faraday::SSLError (SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed):
app/controllers/user_sessions_controller.rb:18:in `callback’

Any ideas?

I see you posted your solution in the blog post. Care to edit your answer with the solution included and mark as solved? That would also help others! Thanks!

Hi, I’m hitting this exact same problem. Can you post your solution please?

We’re getting this on a fresh install without using https?


You need to make sure that the certificate on both sides of the connection, that is for CI and GitLab are valid and recognized by the operating system as valid. If that is not the case, you should add both certificates to the root chain of the operating system.

As mentioned in my post:

We aren’t using SSL.

No one?