mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-04 10:15:05 +02:00
global-functions: make $CertificateAvailable work on CommonName
This should prevent endless certificate switching for Let's Encrypt cross-signed intermediate certificates.
This commit is contained in:
parent
abdc9b0cbd
commit
f4673928ef
10 changed files with 147 additions and 148 deletions
|
@ -39,7 +39,7 @@
|
|||
:local datetime ([ / system clock get date ] . " " . [ / system clock get time ]);
|
||||
:local vendor;
|
||||
:do {
|
||||
$CertificateAvailable "731d3d9cfaa061487a1d71445a42f67df0afca2a6c2d2f98ff7b3ce112b1f568";
|
||||
$CertificateAvailable "Let's Encrypt Authority X3" "letsencrypt";
|
||||
:set vendor ([ / tool fetch mode=https check-certificate=yes-without-crl \
|
||||
url=("https://api.macvendors.com/" . [ :pick $mac 0 8 ]) output=user as-value ]->"data");
|
||||
} on-error={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue