Fixing the re-issuance process. Ensuring that certificates that are r… (#686)

* Fixing the re-issuance process. Ensuring that certificates that are re-issued go through the normal schema validation.

* Fixing tests.
This commit is contained in:
kevgliss
2017-02-03 11:21:53 -08:00
committed by GitHub
parent 0326e1031f
commit 8afcb50a39
6 changed files with 17 additions and 26 deletions

View File

@ -9,6 +9,8 @@ def rotate_certificate(endpoint, new_cert):
:param new_cert:
:return:
"""
# ensure that certificate is available for rotation
endpoint.source.plugin.update_endpoint(endpoint, new_cert)
endpoint.certificate = new_cert
database.update(endpoint)