global-functions: $CertificateDownload: drop the old builtin-trust-anchors

This commit is contained in:
Christian Hesse 2026-04-22 09:42:47 +02:00
parent c451f2c191
commit c151fc9e1d

View file

@ -192,8 +192,7 @@
:do {
:local CertSettings [ /certificate/settings/get ];
:if ([ :len [ /certificate/find where common-name="ISRG Root X1" ] ] = 0 && \
!((($CertSettings->"builtin-trust-anchors") = "trusted" || \
($CertSettings->"builtin-trust-store") ~ "fetch" || \
!((($CertSettings->"builtin-trust-store") ~ "fetch" || \
($CertSettings->"builtin-trust-store") = "all") && \
[ :len [ /certificate/builtin/find where common-name="ISRG Root X1" ] ] > 0)) do={
$LogPrint error $0 ("Required certificate is not available.");