diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptography/hazmat/backends/openssl/x509.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cryptography/hazmat/backends/openssl/x509.py b/src/cryptography/hazmat/backends/openssl/x509.py index 38dc8e70..a03414c8 100644 --- a/src/cryptography/hazmat/backends/openssl/x509.py +++ b/src/cryptography/hazmat/backends/openssl/x509.py @@ -159,6 +159,9 @@ class _Certificate(object): self._backend = backend self._x509 = x509 + def __repr__(self): + return "<Certificate(subject={0}, ...)>".format(self.subject) + def __eq__(self, other): if not isinstance(other, x509.Certificate): return NotImplemented |