check-certificates: support multiple passphrases

This commit is contained in:
Christian Hesse 2019-04-01 22:45:38 +02:00
parent 40201ac1ea
commit 594aef2aab
4 changed files with 10 additions and 4 deletions

View file

@ -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 ];