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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With