mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-01-28 20:09:34 +00:00
global-functions: $CertificateAvailable: drop the old builtin-trust-anchors
This commit is contained in:
parent
bb27a007ef
commit
d2e75d137c
1 changed files with 2 additions and 3 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
# Michael Gisbers <michael@gisbers.de>
|
# Michael Gisbers <michael@gisbers.de>
|
||||||
# https://rsc.eworm.de/COPYING.md
|
# https://rsc.eworm.de/COPYING.md
|
||||||
#
|
#
|
||||||
# requires RouterOS, version=7.19
|
# requires RouterOS, version=7.21
|
||||||
# requires device-mode, fetch, scheduler
|
# requires device-mode, fetch, scheduler
|
||||||
#
|
#
|
||||||
# global functions
|
# global functions
|
||||||
|
|
@ -130,8 +130,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
:local CertSettings [ /certificate/settings/get ];
|
:local CertSettings [ /certificate/settings/get ];
|
||||||
:if ((($CertSettings->"builtin-trust-anchors") = "trusted" || \
|
:if ((($CertSettings->"builtin-trust-store") ~ $UseFor || \
|
||||||
($CertSettings->"builtin-trust-store") ~ $UseFor || \
|
|
||||||
($CertSettings->"builtin-trust-store") = "all") && \
|
($CertSettings->"builtin-trust-store") = "all") && \
|
||||||
[ :len [ /certificate/builtin/find where common-name=$CommonName ] ] > 0) do={
|
[ :len [ /certificate/builtin/find where common-name=$CommonName ] ] > 0) do={
|
||||||
:return true;
|
:return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue