unable to get local issuer certificate error: unable to get local issuer certificate code example

Example 1: unable to get local issuer certificate git

git config --global http.sslVerify false

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);