commit b02252d664128b117fc6d6608f8f11b94fb329bb
parent e243918207d897ef63d6b194da55ba202c9932a6
Author: SomberNight <somber.night@protonmail.com>
Date: Wed, 7 Mar 2018 14:43:14 +0100
fix #4065
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/x509.py b/lib/x509.py
@@ -284,7 +284,7 @@ class X509(object):
return self.AKI if self.AKI else repr(self.issuer)
def get_common_name(self):
- return self.subject.get('2.5.4.3', 'unknown').decode()
+ return self.subject.get('2.5.4.3', b'unknown').decode()
def get_signature(self):
return self.cert_sig_algo, self.signature, self.data