MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / from_pyopenssl

Method from_pyopenssl

mitmproxy/certs.py:102–103  ·  view source on GitHub ↗
(self, x509: OpenSSL.crypto.X509)

Source from the content-addressed store, hash-verified

100
101 @classmethod
102 def from_pyopenssl(self, x509: OpenSSL.crypto.X509) -> "Cert":
103 return Cert(x509.to_cryptography())
104
105 @deprecated("Use `to_cryptography` instead.")
106 def to_pyopenssl(self) -> OpenSSL.crypto.X509: # pragma: no cover

Callers 2

test_convertMethod · 0.80

Calls 2

CertClass · 0.85
to_cryptographyMethod · 0.80

Tested by 1

test_convertMethod · 0.64