Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git clone https/ssl error [duplicate]

Tags:

git

https

ssl

I have installed the ssl certificate and key in my git server. But am getting error when i try to clone via https from my mysysgit. Earlier it was working fine with http. Unable to identify where it is failing

$ git clone https://server.name/git/testing.git Cloning into 'testing'... * Couldn't find host server.name in the _netrc file; using defaults * About to connect() to server.name port 443 (#0) *   Trying server.name... * Adding handle: conn: 0x274fd60 * Adding handle: send: 0 * Adding handle: recv: 0 * Curl_addHandleToPipeline: length: 1 * - Conn 0 (0x274fd60) send_pipe: 1, recv_pipe: 0 * Connected to server.name(server.name) port 443 (#0) * successfully set certificate verify locations: *   CAfile: C:\Users\user1\AppData\Local\Programs\Git/bin/curl-ca-bundle.crt   CApath: none * SSL certificate problem: self signed certificate * Closing connection 0 fatal: unable to access 'https://server.name/git/testing.git/': SSL certificate problem: self signed certificate 
like image 504
user2164525 Avatar asked Sep 27 '13 07:09

user2164525


1 Answers

If you are getting an error while doing a git clone, then above needs to be changed to:

git config --global http.sslVerify false 
like image 185
Pradeep S Avatar answered Sep 25 '22 03:09

Pradeep S