import sys
import os
-from IPython import embed
-
from cryptography import x509
from cryptography.hazmat.backends import default_backend
for stype in SERVICETYPES:
for path, name in oldcerts[stype]:
- print(path, name)
-
- client = Client(inventory, settings);
- client.get_certificate(name, stype)
-
+ logging.info("Renewing Certificate: %s", name)
+ try:
+ client = Client(inventory, settings);
+ client.get_certificate(name, stype)
+ except Exception as e:
+ logging.exception("Couldnt renew")
if __name__ == '__main__':
main()