From b02252d664128b117fc6d6608f8f11b94fb329bb Mon Sep 17 00:00:00 2001 From: SomberNight Date: Wed, 7 Mar 2018 14:43:14 +0100 Subject: [PATCH] fix #4065 --- lib/x509.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/x509.py b/lib/x509.py index 52dd45f54..b7ec4389e 100644 --- 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