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

Method to_cryptography

mitmproxy/certs.py:109–110  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

107 return OpenSSL.crypto.X509.from_cryptography(self._cert)
108
109 def to_cryptography(self) -> x509.Certificate:
110 return self._cert
111
112 def public_key(self) -> CertificatePublicKeyTypes:
113 return self._cert.public_key()

Callers 5

test_convertMethod · 0.80
test_sslkeylogfileFunction · 0.80
from_pyopensslMethod · 0.80
tls_start_clientMethod · 0.80

Calls

no outgoing calls

Tested by 2

test_convertMethod · 0.64
test_sslkeylogfileFunction · 0.64