Starting transition away from not_before and not_after. (#854)

This commit is contained in:
kevgliss 2017-07-14 09:24:59 -07:00 committed by GitHub
parent 61c493fc91
commit f5082e2d3a
2 changed files with 5 additions and 3 deletions

View File

@ -123,7 +123,6 @@ def request_reissue(certificate, commit):
:return: :return:
""" """
details = get_certificate_primitives(certificate) details = get_certificate_primitives(certificate)
print_certificate_details(details) print_certificate_details(details)
if commit: if commit:
@ -207,8 +206,7 @@ def reissue(old_certificate_name, commit):
sentry.captureException() sentry.captureException()
metrics.send('certificate_reissue_failure', 'counter', 1) metrics.send('certificate_reissue_failure', 'counter', 1)
print( print(
"[!] Failed to reissue certificate {0} reason: {1}".format( "[!] Failed to reissue certificates. Reason: {}".format(
old_cert.name,
e e
) )
) )

View File

@ -471,8 +471,12 @@ def get_certificate_primitives(certificate):
# TODO this can be removed once we migrate away from cn # TODO this can be removed once we migrate away from cn
data['cn'] = data['common_name'] data['cn'] = data['common_name']
# needed until we move off not_*
data['not_before'] = start data['not_before'] = start
data['not_after'] = end data['not_after'] = end
data['validity_start'] = start
data['validity_end'] = end
return data return data