Commit 8fd75343 authored by Lucas Carvalho's avatar Lucas Carvalho

Reverting partially the previous commit.

Sorry, it should not be commited in the previous commit.
parent c6f302b0
......@@ -68,7 +68,6 @@ class HTTPSConnectionCertificateVerification(httplib.HTTPSConnection):
ca_certs=self.ssl_cert_path,
cert_reqs=ssl.CERT_REQUIRED)
cert = self.sock.getpeercert()
if cert:
for field in cert['subject']:
if field[0][0] == 'commonName':
certhost = field[0][1]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment