mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-01-18 15:09:33 +00:00
Merge branch 'lets-encrypt-gen-y' into next
This commit is contained in:
commit
883a442ff5
9 changed files with 71 additions and 15 deletions
|
|
@ -18,9 +18,9 @@ Run the complete base installation:
|
||||||
|
|
||||||
{
|
{
|
||||||
:local BaseUrl "https://rsc.eworm.de/main/";
|
:local BaseUrl "https://rsc.eworm.de/main/";
|
||||||
:local CertCommonName "ISRG Root X2";
|
:local CertCommonName "Root YE";
|
||||||
:local CertFileName "ISRG-Root-X2.pem";
|
:local CertFileName "Root-YE.pem";
|
||||||
:local CertFingerprint "69729b8e15a86efc177a57afb7171dfc64add28c2fca8cf1507e34453ccb1470";
|
:local CertFingerprint "e14ffcad5b0025731006caa43a121a22d8e9700f4fb9cf852f02a708aa5d5666";
|
||||||
|
|
||||||
:local CertSettings [ /certificate/settings/get ];
|
:local CertSettings [ /certificate/settings/get ];
|
||||||
:if (!((($CertSettings->"builtin-trust-anchors") = "trusted" || \
|
:if (!((($CertSettings->"builtin-trust-anchors") = "trusted" || \
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.6 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 5 KiB After Width: | Height: | Size: 4.9 KiB |
12
README.md
12
README.md
|
|
@ -112,7 +112,7 @@ If you intend to download the scripts from a
|
||||||
different location (for example from github.com) install the corresponding
|
different location (for example from github.com) install the corresponding
|
||||||
certificate chain.
|
certificate chain.
|
||||||
|
|
||||||
/tool/fetch "https://rsc.eworm.de/main/certs/ISRG-Root-X2.pem" dst-path="isrg-root-x2.pem";
|
/tool/fetch "https://rsc.eworm.de/main/certs/Root-YE.pem" dst-path="root-ye.pem";
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
@ -120,11 +120,11 @@ Note that the commands above do *not* verify server certificate, so if you
|
||||||
want to be safe download with your workstations's browser and transfer the
|
want to be safe download with your workstations's browser and transfer the
|
||||||
file to your MikroTik device.
|
file to your MikroTik device.
|
||||||
|
|
||||||
* [ISRG Root X2 ↗️](https://letsencrypt.org/certs/isrg-root-x2.pem)
|
* Let's Encrypt [Root YE ↗️](https://letsencrypt.org/certs/gen-y/root-ye.pem)
|
||||||
|
|
||||||
Then we import the certificate.
|
Then we import the certificate.
|
||||||
|
|
||||||
/certificate/import file-name="isrg-root-x2.pem" passphrase="";
|
/certificate/import file-name="root-ye.pem" passphrase="";
|
||||||
|
|
||||||
Do not worry that the command is not shown - that happens because it contains
|
Do not worry that the command is not shown - that happens because it contains
|
||||||
a sensitive property, the passphrase.
|
a sensitive property, the passphrase.
|
||||||
|
|
@ -132,11 +132,11 @@ a sensitive property, the passphrase.
|
||||||

|

|
||||||
|
|
||||||
For basic verification we rename the certificate and print it by
|
For basic verification we rename the certificate and print it by
|
||||||
fingerprint. Make sure exactly this one certificate ("*ISRG-Root-X2*")
|
fingerprint. Make sure exactly this one certificate ("*Root-YE*")
|
||||||
is shown.
|
is shown.
|
||||||
|
|
||||||
/certificate/set name="ISRG-Root-X2" [ find where common-name="ISRG Root X2" ];
|
/certificate/set name="Root-YE" [ find where common-name="Root YE" ];
|
||||||
/certificate/print proplist=name,fingerprint where fingerprint="69729b8e15a86efc177a57afb7171dfc64add28c2fca8cf1507e34453ccb1470";
|
/certificate/print proplist=name,fingerprint where fingerprint="e14ffcad5b0025731006caa43a121a22d8e9700f4fb9cf852f02a708aa5d5666";
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,11 +12,11 @@ DOMAINS_DUAL = \
|
||||||
cloudflare-dns.com/SSL-com-Root-Certification-Authority-ECC \
|
cloudflare-dns.com/SSL-com-Root-Certification-Authority-ECC \
|
||||||
dns.google/GTS-Root-R4 \
|
dns.google/GTS-Root-R4 \
|
||||||
dns.quad9.net/DigiCert-Global-Root-G3 \
|
dns.quad9.net/DigiCert-Global-Root-G3 \
|
||||||
git.eworm.de/ISRG-Root-X2 \
|
git.eworm.de/Root-YE \
|
||||||
lists.blocklist.de/GTS-Root-R4 \
|
lists.blocklist.de/GTS-Root-R4 \
|
||||||
matrix.org/GTS-Root-R4 \
|
matrix.org/GTS-Root-R4 \
|
||||||
raw.githubusercontent.com/USERTrust-RSA-Certification-Authority \
|
raw.githubusercontent.com/USERTrust-RSA-Certification-Authority \
|
||||||
rsc.eworm.de/ISRG-Root-X2 \
|
rsc.eworm.de/Root-YE \
|
||||||
upgrade.mikrotik.com/ISRG-Root-X1
|
upgrade.mikrotik.com/ISRG-Root-X1
|
||||||
DOMAINS_IPV4 = \
|
DOMAINS_IPV4 = \
|
||||||
1.1.1.1/SSL-com-Root-Certification-Authority-ECC \
|
1.1.1.1/SSL-com-Root-Certification-Authority-ECC \
|
||||||
|
|
|
||||||
19
certs/Root-YE.pem
Normal file
19
certs/Root-YE.pem
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
# Issuer: C=US, O=ISRG, CN=Root YE
|
||||||
|
# Subject: C=US, O=ISRG, CN=Root YE
|
||||||
|
# Label: "Root YE"
|
||||||
|
# Serial: A4026BA2EF6C7C20D4047E5E65A69380
|
||||||
|
# MD5 Fingerprint: 93:61:B1:AC:E4:DC:A4:8B:C6:FF:A4:A2:2B:D4:64:64
|
||||||
|
# SHA1 Fingerprint: A9:57:15:57:A7:7D:B7:8F:FA:C2:E9:7B:57:B8:98:56:90:39:C3:40
|
||||||
|
# SHA256 Fingerprint: E1:4F:FC:AD:5B:00:25:73:10:06:CA:A4:3A:12:1A:22:D8:E9:70:0F:4F:B9:CF:85:2F:02:A7:08:AA:5D:56:66
|
||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
MIIB2TCCAWCgAwIBAgIRAKQCa6LvbHwg1AR+XmWmk4AwCgYIKoZIzj0EAwMwLjEL
|
||||||
|
MAkGA1UEBhMCVVMxDTALBgNVBAoTBElTUkcxEDAOBgNVBAMTB1Jvb3QgWUUwHhcN
|
||||||
|
MjUwOTAzMDAwMDAwWhcNNDUwOTAyMjM1OTU5WjAuMQswCQYDVQQGEwJVUzENMAsG
|
||||||
|
A1UEChMESVNSRzEQMA4GA1UEAxMHUm9vdCBZRTB2MBAGByqGSM49AgEGBSuBBAAi
|
||||||
|
A2IABDwS/6vhrcVqcbBo+wgdI3fwn9x7DNJJOY/lTOti0vkwuRN87RhEhTH17E7X
|
||||||
|
yFjWsPYhIPt/wzOqxTd2b+4ZJNy9ID04YywF9U5zasDVyGSNErVNtz8uSGh5izW8
|
||||||
|
7j77GaNCMEAwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0O
|
||||||
|
BBYEFKPIJlqOoUzQNWP8myPIOq5W809WMAoGCCqGSM49BAMDA2cAMGQCMHhMr8N9
|
||||||
|
LdL1VQKs9BdV81r76eXRB6mtjuNjzk6/lBsPNToWLTDzGYgtQKO1jl63uAIwGV7m
|
||||||
|
onyF377c+MM1oqVNs17sgu7F9YKZwgLmVbeOMDbKAXHtKMDLbiGllCcs8f47
|
||||||
|
-----END CERTIFICATE-----
|
||||||
37
certs/Root-YR.pem
Normal file
37
certs/Root-YR.pem
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
# Issuer: C=US, O=ISRG, CN=Root YR
|
||||||
|
# Subject: C=US, O=ISRG, CN=Root YR
|
||||||
|
# Label: "Root YR"
|
||||||
|
# Serial: EC46349360CF4B0FF8A982D93AA9CA3D
|
||||||
|
# MD5 Fingerprint: B7:C3:9E:B2:5C:FA:D6:0D:0B:F8:7F:A6:D8:A0:95:F7
|
||||||
|
# SHA1 Fingerprint: C5:F1:11:DA:84:F7:DE:F8:E6:F3:F9:9F:8F:5F:36:FF:85:BA:B1:B1
|
||||||
|
# SHA256 Fingerprint: E5:7B:7E:6F:15:0C:41:91:02:E8:D5:C0:55:72:9F:F9:67:B9:D1:A8:29:BF:00:CE:C8:9C:A6:04:EB:F4:A8:6F
|
||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
MIIFKT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qvuH52RFj2zv/B
|
||||||
|
AgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1Ud
|
||||||
|
DgQWBBTe51tg0CJtQCh9Pw0B/qS1UrRRlDANBgkqhkiG9w0BAQsFAAOCAgEAWHnf
|
||||||
|
713Bdkq7t5yN2dNIgQakUb94X9WuyhMEHHkgx4oDpSUlnG0w4g94MoqaEUE31ZjR
|
||||||
|
LU7L5LD1g9ujFHTQu8AD215AHMVQFbm6j8hQxdXHAzDajFNQnOlDJrLjzIx176oy
|
||||||
|
AjvUtejZx2NNmdb5fd0WGVGsCdoAJ3N8ozo7ajE8t6vfxStZb4BQ9WYJGHUDrv2N
|
||||||
|
i5tJF6CNiPnlzs3BUfECRbE4JSk+jvy8+VoGiFE8qsH/j78x2fjgQhAQFV7P7Zxy
|
||||||
|
dBTZ1wEkNpZNW2qnaK1SKBLa+xf6E06YRIq5uaI+HWH8SY1y5VbRgzq40EKg3yxP
|
||||||
|
06fz+uYAUIFJoLNfhwRCc3Q6pQVuMX3yAjHAes4gk4moGcLQ5p7HAh39yeylZc1J
|
||||||
|
41sx/jKwLIkPE6Rr1Nf4pxdsxf9SA4yOEiAkDgq04DVxn8hgYFdUtBCuiuVC2heA
|
||||||
|
EiqVEa+8QZjuw8Gj0EbHXcRd1nInvGqRS1o9Is7YBdQN57X1AYveGBNNqjICSb7c
|
||||||
|
awuw1EawTDrs13VUlJVEsbQ0/O/1aaV73mCdOQ8azqL2KTv1Ewu1xbquE2S+kdQU
|
||||||
|
To9TUwat3wUA6cwXh1EfpS/3fJ0aGah5hdpRyoCLDlsSn8tkrjMfFFX0viC+GxHc
|
||||||
|
sI1ANRYvqSFC2X1VRZfDg+wD6E21BccmifG4yWc=
|
||||||
|
-----END CERTIFICATE-----
|
||||||
|
|
@ -108,11 +108,11 @@
|
||||||
:global FwAddrLists {
|
:global FwAddrLists {
|
||||||
# "allow"={
|
# "allow"={
|
||||||
# { url="https://rsc.eworm.de/main/fw-addr-lists.d/allow";
|
# { url="https://rsc.eworm.de/main/fw-addr-lists.d/allow";
|
||||||
# cert="ISRG Root X2"; timeout=1w };
|
# cert="Root YE"; timeout=1w };
|
||||||
# };
|
# };
|
||||||
"block"={
|
"block"={
|
||||||
# { url="https://rsc.eworm.de/main/fw-addr-lists.d/block";
|
# { url="https://rsc.eworm.de/main/fw-addr-lists.d/block";
|
||||||
# cert="ISRG Root X2" };
|
# cert="Root YE" };
|
||||||
{ url="https://raw.githubusercontent.com/stamparm/ipsum/refs/heads/master/levels/4.txt";
|
{ url="https://raw.githubusercontent.com/stamparm/ipsum/refs/heads/master/levels/4.txt";
|
||||||
# # higher level (decrease the numerical value) for more addresses, and vice versa
|
# # higher level (decrease the numerical value) for more addresses, and vice versa
|
||||||
cert="USERTrust RSA Certification Authority" };
|
cert="USERTrust RSA Certification Authority" };
|
||||||
|
|
@ -127,7 +127,7 @@
|
||||||
};
|
};
|
||||||
# "mikrotik"={
|
# "mikrotik"={
|
||||||
# { url="https://rsc.eworm.de/main/fw-addr-lists.d/mikrotik";
|
# { url="https://rsc.eworm.de/main/fw-addr-lists.d/mikrotik";
|
||||||
# cert="ISRG Root X2"; timeout=1w };
|
# cert="Root YE"; timeout=1w };
|
||||||
# };
|
# };
|
||||||
};
|
};
|
||||||
:global FwAddrListTimeOut 1d;
|
:global FwAddrListTimeOut 1d;
|
||||||
|
|
|
||||||
|
|
@ -1265,7 +1265,7 @@
|
||||||
:global SymbolForNotification;
|
:global SymbolForNotification;
|
||||||
:global ValidateSyntax;
|
:global ValidateSyntax;
|
||||||
|
|
||||||
:if ([ $CertificateAvailable "ISRG Root X2" "fetch" ] = false) do={
|
:if ([ $CertificateAvailable "Root YE" "fetch" ] = false) do={
|
||||||
$LogPrint warning $0 ("Downloading certificate failed, trying without.");
|
$LogPrint warning $0 ("Downloading certificate failed, trying without.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue