aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/hazmat/backends/openssl/x509.py3
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 f46dd1b7..9cd35087 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