Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gitlab Peer certificate cannot be authenticated with known CA certificates

Tags:

git

When I setting up gitlab on centos 6 under the real ip, I meet this error finnally.

[qzi@host test]$ git push -u origin master
fatal: unable to access 'http://10.41.37.180/git/test.git/': Peer certificate cannot be     authenticated with known CA certificates

How can I solve this?

like image 390
Leon Avatar asked Dec 25 '22 15:12

Leon


1 Answers

You have number of options:

  • On an off chance that SSL verification fails due to out-of-date or absent CA certificates. sudo yum reinstall ca-certificates might help. Make sure you have them and, possibly, point git to the right path with git config http.sslCAInfo or http.sslCAPath.

  • Install properly signed ceritificate on gitlab site, so your git-over-HTTPS does not complain when it sees self-signed certificate which would be fairly typical in simple setups.

  • Disable SSL certificate verification with git config http.sslVerify false or set GIT_SSL_NO_VERIFY in the environment.

  • use git clone git://... to clone your repo.

like image 161
ArtemB Avatar answered Jan 18 '23 23:01

ArtemB