From b6a3c9dc74ccef6f8e7df4123670d7e11269198c Mon Sep 17 00:00:00 2001 From: Fraser Tweedale Date: Oct 26 2016 16:30:31 +0000 Subject: 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 --- diff --git a/ipaserver/plugins/cert.py b/ipaserver/plugins/cert.py index d13974e..a66cc38 100644 --- a/ipaserver/plugins/cert.py +++ b/ipaserver/plugins/cert.py @@ -399,9 +399,9 @@ class BaseCertObject(Object): obj['subject'] = DN(unicode(cert.subject)) obj['issuer'] = DN(unicode(cert.issuer)) 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: - obj['valid_not_before'] = unicode(cert.valid_not_before_str) - obj['valid_not_after'] = unicode(cert.valid_not_after_str) obj['md5_fingerprint'] = unicode( nss.data_to_hex(nss.md5_digest(cert.der_data), 64)[0]) obj['sha1_fingerprint'] = unicode(