mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
cert-show: show validity in default output
cert-show no longer shows validity dates without `--all', but this is important information that should be shown by default. Make it so. Fixes: https://fedorahosted.org/freeipa/ticket/6419 Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
parent
eb6bfd82f3
commit
b6a3c9dc74
@ -399,9 +399,9 @@ class BaseCertObject(Object):
|
|||||||
obj['subject'] = DN(unicode(cert.subject))
|
obj['subject'] = DN(unicode(cert.subject))
|
||||||
obj['issuer'] = DN(unicode(cert.issuer))
|
obj['issuer'] = DN(unicode(cert.issuer))
|
||||||
obj['serial_number'] = cert.serial_number
|
obj['serial_number'] = cert.serial_number
|
||||||
|
obj['valid_not_before'] = unicode(cert.valid_not_before_str)
|
||||||
|
obj['valid_not_after'] = unicode(cert.valid_not_after_str)
|
||||||
if full:
|
if full:
|
||||||
obj['valid_not_before'] = unicode(cert.valid_not_before_str)
|
|
||||||
obj['valid_not_after'] = unicode(cert.valid_not_after_str)
|
|
||||||
obj['md5_fingerprint'] = unicode(
|
obj['md5_fingerprint'] = unicode(
|
||||||
nss.data_to_hex(nss.md5_digest(cert.der_data), 64)[0])
|
nss.data_to_hex(nss.md5_digest(cert.der_data), 64)[0])
|
||||||
obj['sha1_fingerprint'] = unicode(
|
obj['sha1_fingerprint'] = unicode(
|
||||||
|
Loading…
Reference in New Issue
Block a user