How to resolve the "git clone problem with the ssl CA cert" error?

1

I'm trying to install SSL Let's Encrypt, using certbot, I'm using the following command:

git clone https://github.com/certbot/certbot

But the following message returns:

  

fatal: unable to access ' link ': Problem with the SSL CA cert (path? access rights?)

I'd like to know what I should do to fix this.

    
asked by anonymous 17.12.2016 / 02:15

1 answer

1

Applying a bypass

You can try a bypass, that is, disable ssl checking in configurations or at run time.

Modify globally, via the command line

git config http.sslVerify false

Modifies at run time, ie for current session

env GIT_SSL_NO_VERIFY=true git clone https://git.....

Please be aware that there are security implications when disabling verification. Use this feature only when it is unavoidable.

Another rough way is in the git settings file, remove the line

[http]
sslCAinfo = /local/do/cert/curl-ca-bundle.crt

Configuring a valid certificate (cacert.pem)

However, the correct thing is to set up a valid certificate.

To do this, download cacert.pem:

curl http://curl.haxx.se/ca/cacert.pem -o /local/onde/quer/salvar/cacert.pem

Then edit the git settings file

[http]
sslCAinfo = /local/onde/salvou/o/cacert.pem

Tip: Another way to edit settings by command line:

git config --global http.sslCAinfo "/local/onde/salvou/o/cacert.pem"
    
17.12.2016 / 02:40