Adding some additional output to rotation command. (#627)
This commit is contained in:
parent
8c5c30dfd4
commit
072ca4da4f
@ -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.')
|
||||
|
Loading…
Reference in New Issue
Block a user