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

Method to_pem

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

Source from the content-addressed store, hash-verified

96 return cls(cert)
97
98 def to_pem(self) -> bytes:
99 return self._cert.public_bytes(serialization.Encoding.PEM)
100
101 @classmethod
102 def from_pyopenssl(self, x509: OpenSSL.crypto.X509) -> "Cert":

Callers 4

get_stateMethod · 0.95
test_simpleMethod · 0.80
test_convertMethod · 0.80
extractFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_simpleMethod · 0.64
test_convertMethod · 0.64