(cls, data: bytes)
| 92 | |
| 93 | @classmethod |
| 94 | def from_pem(cls, data: bytes) -> "Cert": |
| 95 | cert = x509.load_pem_x509_certificate(data) # type: ignore |
| 96 | return cls(cert) |
| 97 | |
| 98 | def to_pem(self) -> bytes: |
| 99 | return self._cert.public_bytes(serialization.Encoding.PEM) |
no outgoing calls