• SSL certificate problem: unable to get local issuer certificate


    I just found out that mygit client cannot checkout remote repository using https, got this error:
    SSL certificate problem: unable to get local issuer certificate

    The only workaround I found is git config --global http.sslVerify true but of course I would like to fix the problem at the root.

    Any idea ( I don’t really know how certificates works ) ?

  • You are probably connecting to a git repository with a self-signed certificate or a certificate signed by an unknown/unverified authority. It’s a standard SSL verification message/error. You can fix this in one of the following ways.

    1. Make sure your git repository is using a valid certificate issued by a verified CA authority (try LetsEncrypt if you want a free certificate)
    2. Turn off SSL verification git config --global http.sslVerify false
    3. If you have the CA certificate, point giot to the location of the CA certificate git config --system http.sslCAPath /git/certificates (won’t work for self-signed certificates)
certificate1 unable29 issuer1 ssl4 Posts 2Views 208
Log in to reply