diff --git a/vault_cert_renew.py b/vault_cert_renew.py index 2b7465b..703ac26 100755 --- a/vault_cert_renew.py +++ b/vault_cert_renew.py @@ -60,6 +60,7 @@ if os.path.isfile(cert) and os.path.isfile(key): valid = subprocess.run( ["openssl", "x509", "-checkend", str(renew_before_days * 86400), "-noout", "-in", cert], capture_output=True, + check=False, ) if valid.returncode == 0: print(f"The certificate is valid for more than {renew_before_days} days, nothing to do")