I get this error on a fresh install of gitlab. The message looks like:
fatal: unable to access \'https://gitlab-ci-
token:xxxxxxxxxxxxxxxxxxxx@gitlab.example.co
You need to configure /etc/gitlab/gitlab.rb
.
Change this line
nginx['ssl_certificate'] = "/etc/gitlab//cert.pem"
to
nginx['ssl_certificate'] = "/etc/gitlab//fullchain.pem"
(Assuming, you already have nginx
enabled and you have correctly issued certificates, e.g. from LetsEncrypt.)
then restart gitlab and you're done:
$ gitlab-ctl reconfigure
Why - cert.pem
does not contain full certificate chain, thus ca chain cannot be verified. Replacing with fullchain.pem
solves it.