electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 8c42c6d39f26b5b680be5f6b7c1c8ac4a1075609
parent 11ef0f5489f0df8812cc2e9cad1d70aab2a72fbe
Author: ThomasV <thomasv@electrum.org>
Date:   Thu, 19 May 2016 11:07:21 +0200

show certificate name in error popup

Diffstat:
Mlib/x509.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/x509.py b/lib/x509.py @@ -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()