tshow certificate name in error popup - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 8c42c6d39f26b5b680be5f6b7c1c8ac4a1075609 DIR parent 11ef0f5489f0df8812cc2e9cad1d70aab2a72fbe HTML Author: ThomasV <thomasv@electrum.org> Date: Thu, 19 May 2016 11:07:21 +0200 show certificate name in error popup Diffstat: M lib/x509.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/lib/x509.py b/lib/x509.py t@@ -292,9 +292,9 @@ class X509(object): not_before = time.mktime(time.strptime(self.notBefore, TIMESTAMP_FMT)) not_after = time.mktime(time.strptime(self.notAfter, TIMESTAMP_FMT)) if not_before > now: - raise CertificateError('Certificate has not entered its valid date range.') + raise CertificateError('Certificate has not entered its valid date range. (%s)'%self.get_common_name()) if not_after <= now: - raise CertificateError('Certificate has expired.') + raise CertificateError('Certificate has expired. (%s)'%self.get_common_name()) def getFingerprint(self): return hashlib.sha1(self.bytes).digest()