Return a certutils.SSLCert object from get_remote_cert.
This commit is contained in:
parent
bae86480d4
commit
3f9aad53ab
|
@ -68,7 +68,7 @@ class TCPClient:
|
||||||
self.connection.do_handshake()
|
self.connection.do_handshake()
|
||||||
except SSL.Error, v:
|
except SSL.Error, v:
|
||||||
raise NetLibError("SSL handshake error: %s"%str(v))
|
raise NetLibError("SSL handshake error: %s"%str(v))
|
||||||
self.cert = self.connection.get_peer_certificate()
|
self.cert = certutils.SSLCert(self.connection.get_peer_certificate())
|
||||||
self.rfile = FileLike(self.connection)
|
self.rfile = FileLike(self.connection)
|
||||||
self.wfile = FileLike(self.connection)
|
self.wfile = FileLike(self.connection)
|
||||||
self.ssl_established = True
|
self.ssl_established = True
|
||||||
|
|
Loading…
Reference in New Issue