git clone - server certification error
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.
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