ssl certificate_verify_failed certificate verify failed unable to get local issuer certificate 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: SSL certificate problem: unable to get local issuer certificate

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);

Tags:

Sql Example