aboutsummaryrefslogtreecommitdiffstats
path: root/check-certificates
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-04-01 22:45:38 +0200
committerGravatar Christian Hesse <mail@eworm.de>2019-04-01 22:45:38 +0200
commit594aef2aab8cc14a2d87b9ce23f00429559588d6 (patch)
tree9b8038ec1de4cb3a28859a74c5a82ced87ceefd2 /check-certificates
parent40201ac1ea8e27492587d0cebdd0d6b8c24b733a (diff)
check-certificates: support multiple passphraseschange-3
Diffstat (limited to 'check-certificates')
-rw-r--r--check-certificates4
1 files changed, 3 insertions, 1 deletions
diff --git a/check-certificates b/check-certificates
index d463ed3..4c10a52 100644
--- a/check-certificates
+++ b/check-certificates
@@ -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 ];