check-certificates: catch and ignore import error

Hmm... 🤨 When was that runtime error introduced? I *think* it
worked before.
This commit is contained in:
Christian Hesse 2025-02-26 13:37:57 +01:00
parent 53b13b295a
commit f6c2225f68

View file

@ -59,10 +59,12 @@
:local DecryptionFailed true;
:foreach PassPhrase in=$CertRenewPass do={
:do {
:local Result [ /certificate/import file-name=$CertFileName passphrase=$PassPhrase as-value ];
:if ($Result->"decryption-failures" = 0) do={
:set DecryptionFailed false;
}
} on-error={ }
}
$RmFile $CertFileName;