Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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_state
Method · 0.95
test_simple
Method · 0.80
test_convert
Method · 0.80
extract
Function · 0.80
Calls
no outgoing calls
Tested by
2
test_simple
Method · 0.64
test_convert
Method · 0.64