Unable to clone when gitlab is migrated to HTTPS

I have installed CA certs and this is valid. When we browse through browsers it has correct cert path with ROOT cert. however, when we try to clone, we face issue with certificate.

  1. Under linux env (git version 1.8.3.1)

fatal: unable to access 'https://gitlab-qa.xxxxx/xxxxx/testGit.git/': Peer's certificate issuer has been marked as not trusted by the user.

  1. Under Windows git bash (git version 2.8.2.windows.1)

fatal: unable to access 'https://gitlab-qa.xxxxx/xxxxx/testGit.git/': SSL certificate problem: self signed certificate in certificate chain

Under gitlab.rb the following points to the CA signed cert

################ GitLab Nginx ################

nginx['enable'] = true

nginx['client_max_body_size'] = '250m'

nginx['ssl_certificate'] = "/etc/gitlab/ssl/cacert.crt"

nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/cacert.key"

################

I currently have the workaround of setting

git config --global http.sslVerify false

but I want to fix this correctly. Appreciate your help.

Assignee Loading
Time tracking Loading