리눅스 & 안드로이드2020. 2. 17. 11:18

I got an error as follow when I tried to clone a gitlab repository:

 

server certificate verification failed. CAfile: /etc/ssl/certs/cacertificates.crt CRLfile: none

 

I've found a solution or workaround for that issue from StackOverflow.

https://stackoverflow.com/questions/21181231/server-certificate-verification-failed-cafile-etc-ssl-certs-ca-certificates-c

 

server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

I can push by clone project using ssh, but it doesn't work when I clone project with https. The error message that shows me is: server certificate verification failed. CAfile: /etc/ssl/certs/

stackoverflow.com

 

Make a long story short, you can configure the git to ignore the server certification if you are sure to trust the server. The methods are as below:

 

export GIT_SSL_NO_VERIFY=1

 

#or

 

git config --global http.sslverify false

 

Posted by 세월의돌