Only remove specific certificates

This commit is contained in:
Pothi Kalimuthu 2023-08-28 07:02:45 +05:30
parent 3aea72c190
commit 75ee7e60fd
No known key found for this signature in database
GPG key ID: 08202A469C2D0E06
4 changed files with 10 additions and 10 deletions

View file

@ -5,7 +5,7 @@
/ip dns set verify-doh-cert=no /ip dns set verify-doh-cert=no
/tool fetch url=https://cacerts.digicert.com/DigiCertGlobalRootCA.crt.pem /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="" /certificate import file-name=DigiCertGlobalRootCA.crt.pem passphrase=""
/file remove DigiCertGlobalRootCA.crt.pem /file remove DigiCertGlobalRootCA.crt.pem

View file

@ -6,7 +6,7 @@
/tool fetch url=https://pki.goog/repo/certs/gtsr1.pem once /tool fetch url=https://pki.goog/repo/certs/gtsr1.pem once
:delay 5s :delay 5s
/certificate remove [find~gtsr1] /certificate remove [find name~"gtsr1.pem"]
/certificate import file-name=gtsr1.pem passphrase="" /certificate import file-name=gtsr1.pem passphrase=""
/file remove gtsr1.pem /file remove gtsr1.pem

View file

@ -13,12 +13,12 @@
/ip dns set verify-doh-cert=no /ip dns set verify-doh-cert=no
# Quad9 uses DigiCert like CloudFlare. # 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" ) :do { :delay 2s } while=( $result->"status" != "finished" )
/certificate remove [find] /certificate remove [find name~"nextdns.pem"]
/certificate import file-name=ssl.pem passphrase="" /certificate import file-name=nextdns.pem passphrase=""
/file remove ssl.pem /file remove nextdns.pem
/ip dns /ip dns
static remove [find name="dns.quad9.net"] static remove [find name="dns.quad9.net"]

View file

@ -6,12 +6,12 @@
/ip dns set verify-doh-cert=no /ip dns set verify-doh-cert=no
# Quad9 uses DigiCert like CloudFlare. # 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" ) :do { :delay 2s } while=( $result->"status" != "finished" )
/certificate remove [find] /certificate remove [find name~"quad9.pem"]
/certificate import file-name=ssl.pem passphrase="" /certificate import file-name=quad9.pem passphrase=""
/file remove ssl.pem /file remove quad9.pem
/ip dns /ip dns
static remove [find name="dns.quad9.net"] static remove [find name="dns.quad9.net"]