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:
Christian Hesse 2018-12-20 22:21:00 +01:00
parent abdc9b0cbd
commit f4673928ef
10 changed files with 147 additions and 148 deletions

View file

@ -3,7 +3,7 @@
# Copyright (c) 2018 Christian Hesse <mail@eworm.de>
{
/ tool fetch "https://git.eworm.de/cgit.cgi/routeros-scripts/plain/certs/731d3d9cfaa061487a1d71445a42f67df0afca2a6c2d2f98ff7b3ce112b1f568.pem" dst-path=letsencrypt.pem;
/ tool fetch "https://git.eworm.de/cgit.cgi/routeros-scripts/plain/certs/letsencrypt.pem" dst-path="letsencrypt.pem";
:delay 1s;
/ certificate import file-name=letsencrypt.pem passphrase="";
/ certificate set name="ISRG-Root-X1" [ find where fingerprint="96bcec06264976f37460779acf28c5a7cfe8a3c0aae11a8ffcee05c0bddf08c6" ];