From 594aef2aab8cc14a2d87b9ce23f00429559588d6 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 1 Apr 2019 22:45:38 +0200 Subject: check-certificates: support multiple passphrases --- check-certificates | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'check-certificates') 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 ]; -- cgit v1.2.3-70-g09d2