"unable to get local issuer certificate (_ssl.c:1091)" code example

Example 1: 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 2: SSL certificate problem: unable to get local issuer certificate

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);

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

curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);

Tags:

Misc Example