Adding some additional output to rotation command. (#627)

This commit is contained in:
kevgliss 2016-12-21 13:34:14 -08:00 committed by GitHub
parent 8c5c30dfd4
commit 072ca4da4f
1 changed files with 4 additions and 0 deletions

View File

@ -113,6 +113,8 @@ def rotate(new_certificate_name, old_certificate_name, message, commit):
"""
new_cert = old_cert = None
print("[+] Staring certificate rotation.")
if commit:
print("[!] Running in COMMIT mode.")
@ -156,6 +158,8 @@ def rotate(new_certificate_name, old_certificate_name, message, commit):
if commit:
metrics.send('certificate_rotation_failure', 'counter', 1)
print("[+] Done!")
@manager.option('-o', '--old-certificate', dest='old_certificate_name', help='Name of the certificate you wish to reissue.')
@manager.option('-s', '--validity-start', dest='validity_start', help='Validity starting date. Format: YYYY-MM-DD.')