mirror of
https://github.com/pothi/mikrotik-scripts.git
synced 2025-07-10 14:44:31 +02:00
Only remove specific certificates
This commit is contained in:
parent
3aea72c190
commit
75ee7e60fd
4 changed files with 10 additions and 10 deletions
|
@ -5,7 +5,7 @@
|
|||
/ip dns set verify-doh-cert=no
|
||||
|
||||
/tool fetch url=https://cacerts.digicert.com/DigiCertGlobalRootCA.crt.pem
|
||||
/certificate remove [find]
|
||||
/certificate remove [find name~"DigiCertGlobalRootCA.crt.pem"]
|
||||
/certificate import file-name=DigiCertGlobalRootCA.crt.pem passphrase=""
|
||||
/file remove DigiCertGlobalRootCA.crt.pem
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
/tool fetch url=https://pki.goog/repo/certs/gtsr1.pem once
|
||||
:delay 5s
|
||||
/certificate remove [find~gtsr1]
|
||||
/certificate remove [find name~"gtsr1.pem"]
|
||||
/certificate import file-name=gtsr1.pem passphrase=""
|
||||
/file remove gtsr1.pem
|
||||
|
||||
|
|
|
@ -13,12 +13,12 @@
|
|||
/ip dns set verify-doh-cert=no
|
||||
|
||||
# Quad9 uses DigiCert like CloudFlare.
|
||||
:local result [ /tool fetch url=http://crt.usertrust.com/USERTrustECCAddTrustCA.crt dst-path=ssl.pem as-value ];
|
||||
:local result [ /tool fetch url=http://crt.usertrust.com/USERTrustECCAddTrustCA.crt dst-path=nextdns.pem as-value ];
|
||||
:do { :delay 2s } while=( $result->"status" != "finished" )
|
||||
|
||||
/certificate remove [find]
|
||||
/certificate import file-name=ssl.pem passphrase=""
|
||||
/file remove ssl.pem
|
||||
/certificate remove [find name~"nextdns.pem"]
|
||||
/certificate import file-name=nextdns.pem passphrase=""
|
||||
/file remove nextdns.pem
|
||||
|
||||
/ip dns
|
||||
static remove [find name="dns.quad9.net"]
|
||||
|
|
|
@ -6,12 +6,12 @@
|
|||
/ip dns set verify-doh-cert=no
|
||||
|
||||
# Quad9 uses DigiCert like CloudFlare.
|
||||
:local result [ /tool fetch url=https://cacerts.digicert.com/DigiCertGlobalRootCA.crt.pem dst-path=ssl.pem as-value ];
|
||||
:local result [ /tool fetch url=https://cacerts.digicert.com/DigiCertGlobalRootCA.crt.pem dst-path=quad9.pem as-value ];
|
||||
:do { :delay 2s } while=( $result->"status" != "finished" )
|
||||
|
||||
/certificate remove [find]
|
||||
/certificate import file-name=ssl.pem passphrase=""
|
||||
/file remove ssl.pem
|
||||
/certificate remove [find name~"quad9.pem"]
|
||||
/certificate import file-name=quad9.pem passphrase=""
|
||||
/file remove quad9.pem
|
||||
|
||||
/ip dns
|
||||
static remove [find name="dns.quad9.net"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue