global-functions: $CertificateDownload: accept name in unit (OU)

This commit is contained in:
Christian Hesse 2026-08-07 13:25:09 +02:00
parent 928dd8213c
commit bc58efefaa

View file

@ -215,7 +215,7 @@
:delay 1s;
$RmFile $FileName;
:if ([ :len [ /certificate/find where common-name=$CommonName ] ] = 0) do={
:if ([ :len [ /certificate/find where common-name=$CommonName or unit=$CommonName ] ] = 0) do={
/certificate/remove [ find where name~("^" . $FileName . "_[0-9]+\$") ];
$LogPrint warning $0 ("Certificate with CommonName '" . $CommonName . "' still unavailable!");
:return false;