Sandip Bhuyan
Sandip Bhuyan

Reputation: 23

Ssl error while git cloning in server

[sandipXXX@server applications]$ git clone https://github.com/sandipbhuyan/myblog.git
Cloning into 'myblog'...
fatal: unable to access 'https://github.com/sandipbhuyan/myblog.git/': Problem with the SSL CA cert (path? access rights?)

While i am trying to clone a git repository from git it is always showing this message i tried this

git config http.sslverify false

but the same is happening

Upvotes: 2

Views: 2096

Answers (2)

mindcoder
mindcoder

Reputation: 387

I solved this problem (Ubuntu 18.04) with three steps:

(1) reset the ssl verification to be true:

git config --global http.sslVerify true

(2) reinstall ca-certificates:

sudo apt-get install ca-certificates

(3) modify the .gitconfig file:

cd ~/
vim .gitconfig
#(change two lines of the ".gitconfig" contents as below)
sslVerify = true
sslCAinfo = /etc/ssl/certs/ca-certificates.crt

Upvotes: 2

VonC
VonC

Reputation: 1326554

Pending the exact resolution of this certificate issue, you can at least try and switch to SSH:

git clone [email protected]:sandipbhuyan/myblog.git

Provided you generated a public/private SSH key (no need for a passphrase for now) and registered your public key to your account.

Upvotes: 0

Related Questions