aboutsummaryrefslogtreecommitdiffstats
path: root/check-certificates.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-04-06 15:05:43 +0200
committerGravatar Christian Hesse <mail@eworm.de>2023-04-07 23:01:20 +0200
commit46110661e07095b3504cbef5e9a66317146c05ce (patch)
treefde76e2857e41cfc1fa25c71a35f3bcaaba16e19 /check-certificates.rsc
parent11093045f30eb289c17c9d08a80de69798ad942d (diff)
check-certificates: do not rename certificates without common-name
Diffstat (limited to 'check-certificates.rsc')
-rw-r--r--check-certificates.rsc2
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={