diff options
author | Christian Hesse <mail@eworm.de> | 2023-04-06 15:05:43 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2023-04-07 23:01:20 +0200 |
commit | 46110661e07095b3504cbef5e9a66317146c05ce (patch) | |
tree | fde76e2857e41cfc1fa25c71a35f3bcaaba16e19 | |
parent | 11093045f30eb289c17c9d08a80de69798ad942d (diff) |
check-certificates: do not rename certificates without common-name
-rw-r--r-- | check-certificates.rsc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/check-certificates.rsc b/check-certificates.rsc index 8250269..fa0963f 100644 --- a/check-certificates.rsc +++ b/check-certificates.rsc @@ -54,7 +54,7 @@ $LogPrintExit2 warning $0 ("Decryption failed for certificate file " . $CertFileName) false; } - :foreach CertInChain in=[ /certificate/find where name~("^" . $CertFileName . "_[0-9]+\$") common-name!=$Name ] do={ + :foreach CertInChain in=[ /certificate/find where name~("^" . $CertFileName . "_[0-9]+\$") common-name!=$Name !(common-name=[]) ] do={ $CertificateNameByCN [ /certificate/get $CertInChain common-name ]; } } on-error={ |