Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what does this error message imply: fatal: unable to access 'https:URL': Peer's Certificate issuer is not recognized?

I have tried many different searches relating to certificates but I don't get it. I don't know how to see if I have good certificates or not. This message was given after trying to push a a git commit in Fedora like this:

$ git push origin master

Is this certificate related or git related? btw ssh works...

like image 295
Brandon Dewey Avatar asked Oct 19 '13 02:10

Brandon Dewey


2 Answers

One possibility would be the absence of Certification Authority certificates on your system.

If that is the case, you can add those as described in this answer.

This is better than ignoring said CA (env GIT_SSL_NO_VERIFY=true git clone https://github...).


In the specific case for this OP, Brandon comments:

I am running 64 bit fedora 19 and, as root, I went to /etc/ssl/certs and saw there was a makefile, so I ran it with a different serial i.e.:

$ make SERIAL=5

Tried git and it worked.

like image 134
VonC Avatar answered Sep 18 '22 12:09

VonC


This works for me

git config --global http.sslCAPath /etc/pki/tls/certs
git clone <repository>
like image 35
BMW Avatar answered Sep 16 '22 12:09

BMW