1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-27 15:06:15 +01:00

fix display of certificate validity period in verifiy_cb

This commit is contained in:
Ludwig Nussel 2009-11-02 08:36:16 +00:00
parent 33dcce48ce
commit 5402029d1d

View File

@ -287,7 +287,7 @@ def verify_cb(ok, store):
print "Subject: ", cert.get_subject()
print "Issuer: ", cert.get_issuer()
print "Fingerprint: ", cert.get_fingerprint()
print "Valid: ", cert.get_not_before(), "-", cert.get_not_before()
print "Valid: ", cert.get_not_before(), "-", cert.get_not_after()
try:
import M2Crypto.Err
reason = M2Crypto.Err.get_x509_verify_error(err)