mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-14 20:14:29 +02:00
check-certificates: complete certificate renewal time
With a modified certificate renewal time may have failed if the new certificate was not found.
This commit is contained in:
parent
d926c84cdb
commit
6cea5a9f9b
1 changed files with 1 additions and 1 deletions
|
@ -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={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue