A small fix for subprocess.run().
This commit is contained in:
1 parent
c466188c00
commit
c43a99986a
1 file changed
+1
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user