MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / get_state

Method get_state

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

Source from the content-addressed store, hash-verified

85 return cls.from_pem(state)
86
87 def get_state(self):
88 return self.to_pem()
89
90 def set_state(self, state):
91 self._cert = x509.load_pem_x509_certificate(state)

Callers

nothing calls this directly

Calls 1

to_pemMethod · 0.95

Tested by

no test coverage detected