mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-21 11:24:31 +02:00
check-certificates: support multiple passphrases
This commit is contained in:
parent
40201ac1ea
commit
594aef2aab
4 changed files with 10 additions and 4 deletions
|
@ -34,7 +34,9 @@
|
|||
}
|
||||
|
||||
/ tool fetch mode=https check-certificate=yes-without-crl url=($CertRenewUrl . $CommonName . ".pem");
|
||||
/ certificate import file-name=($CommonName . ".pem") passphrase=$CertRenewPass;
|
||||
:foreach PassPhrase in=$CertRenewPass do={
|
||||
/ certificate import file-name=($CommonName . ".pem") passphrase=$PassPhrase;
|
||||
}
|
||||
/ file remove [ find where name=($CommonName . ".pem") ];
|
||||
|
||||
:local CertNew [ / certificate find where common-name=$CommonName fingerprint!=$FingerPrint expires-after>3w ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue