] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)> code example

Example 1: ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1091)

Once upon a time I stumbled with this issue. If you're using macOS go to Macintosh HD > Applications > Python3.6 folder (or whatever version of python you're using) > double click on "Install Certificates.command" file.

Example 2: windows fatal: unable to access SSL certificate problem: unable to get local issuer certificate

# in unix put this in your .bash_profile, while
# in windows put it in a batch script that runs at startup or
# simply run it before cloning the repo
git config --global http.sslVerify false

Example 3: SSL certificate problem: unable to get local issuer certificate

curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);

Tags:

Html Example