httplib.HTTPSConnection issue : CERTIFICATE_VERIFY_FAILED
<p>I'm trying to access a website with httplib library but i'm getting this error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)</p>

<pre><code>c = httplib.HTTPSConnection('IP', 443)
c.request(method,url);
</code></pre>

<p>Because the certificate is self-signed. How can I disable the certificate verification?</p>

<p>Thanks!</p>

<p><a href="http://stackoverflow.com/questions/5319430/how-do-i-have-python-httplib-accept-untrusted-certs">How do I have python httplib accept untrusted certs?</a></p>

<pre><code>httplib.HTTPSConnection(hostname, timeout=5, context=ssl._create_unverified_context())
</code></pre>

python