Quantcast
Channel: [EN] OpenPLi Third-Party Development
Viewing all articles
Browse latest Browse all 1691

How to avoid [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed

$
0
0

I'm implementing a plugin which needs to communicate with https website.

 

I get the following error:

 

[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)

 

Here is my code:

headers = {"Content-type": "application/x-www-form-urlencoded","Accept": "text/plain","Authorization": "Basic %s" % b64Val}
conn = httplib.HTTPSConnection("viewthatnow.com", 443)
conn.request("POST", "/savezapentry/savezapentry.php", values, headers)
response = conn.getresponse()

How could I avoid verifying the SSL certificate using python 2.7.3 (used by OpenPli) ??

 


Viewing all articles
Browse latest Browse all 1691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>