diff options
author | Christian Hesse <mail@eworm.de> | 2021-01-11 00:16:00 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2021-01-11 12:00:07 +0100 |
commit | 6cea5a9f9b7f331ef0dcc7eb494887eef2441a62 (patch) | |
tree | e9a1ea98df9d1528cfd3203acd3eae0e8024da44 | |
parent | d926c84cdb1cc28ee29c6ec0a6f339587ce9b280 (diff) |
check-certificates: complete certificate renewal time
With a modified certificate renewal time may have failed if the new
certificate was not found.
-rw-r--r-- | check-certificates | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/check-certificates b/check-certificates index 76df7f9..e54b915 100644 --- a/check-certificates +++ b/check-certificates @@ -56,7 +56,7 @@ $WaitFullyConnected; } } - :local CertNew [ / certificate find where common-name=($CertVal->"common-name") fingerprint!=[ :tostr ($CertVal->"fingerprint") ] expires-after>3w ]; + :local CertNew [ / certificate find where common-name=($CertVal->"common-name") fingerprint!=[ :tostr ($CertVal->"fingerprint") ] expires-after>$CertRenewTime ]; :local CertNewVal [ / certificate get $CertNew ]; :if ([ $CertificateAvailable ([ $ParseKeyValueStore ($CertNewVal->"issuer") ]->"CN") ] = false) do={ |