Christian Hesse
fc3fad5e87
check-certificates: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
fb463419fe
check-certificates: always quote the certificate name
2024-01-30 15:00:31 +01:00
Christian Hesse
a43202326b
check-certificates: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
468b5a18f3
check-certificates: unbreak certificate download
...
This was borked with a2749b2760
. 😳
2024-01-24 16:13:44 +01:00
Christian Hesse
a2749b2760
check-certificates: use prepared user-agent string with fetch
2024-01-19 13:23:52 +01:00
Christian Hesse
9a73fc526f
update copyright for 2024
2024-01-01 15:25:25 +01:00
Christian Hesse
9fb596135e
check-certificates: properly renew from template
2023-12-05 00:11:19 +01:00
Christian Hesse
a12ccba29e
check-certificates: improve wording
2023-12-05 00:11:19 +01:00
Christian Hesse
8de6995c4b
check-certificates: add workaround for broken certificates...
...
... where the issuer array is borked. Or is this a RouterOS issue?
[eworm@carpo] > $InspectVar [ $ParseKeyValueStore [ /certificate/get ISRG-Root-X2 issuer ] ]
-type-> array
-key-> C
-type-> str
-value-> US,O=Internet Security Research Group,CN=ISRG Root X2
A good certificate looks like this:
[eworm@carpo] > $InspectVar [ $ParseKeyValueStore [ /certificate/get [ find where name~"eworm.net" ] issuer ] ]
-type-> array
-key-> C
-type-> str
-value-> US
-key-> CN
-type-> str
-value-> E1
-key-> O
-type-> str
-value-> Let's Encrypt
2023-12-04 13:05:46 +01:00
Christian Hesse
a08df7bdec
check-certificates: prevent infinte loop
2023-12-04 13:05:46 +01:00
Christian Hesse
3df99b0ee0
check-certificates: give full certificate chain
2023-12-04 13:05:46 +01:00
Christian Hesse
94607496ae
check-certificates: fix typo and syntax
2023-12-04 12:15:10 +01:00
Christian Hesse
4ddc6be585
global-functions: split off $FormatMultiLines ...
...
... to format multiple lines from an array.
2023-09-18 07:55:05 +02:00
Christian Hesse
5b789d298b
check-certificates: properly handle in place updates
...
This worked just kind of... The certification was updated, but script
aborted before the notification was sent.
2023-07-23 22:01:43 +02:00
Christian Hesse
e0714bdfff
check-certificates: lock the script
2023-06-13 08:53:03 +02:00
Christian Hesse
6327348405
check-certificates: split validity output
2023-05-25 10:39:00 +02:00
Christian Hesse
7ed70bdb26
check-certificates: use $FormatLine
2023-04-24 22:26:26 +02:00
Christian Hesse
fb9feea595
check-certificates: add certificate name in notification subject
2023-04-19 22:05:43 +02:00
Christian Hesse
f14788a104
check-certificates: properly escape the name for regex
2023-04-07 23:36:09 +02:00
Christian Hesse
9617095022
check-certificates: try all SANs for download
2023-04-07 23:36:09 +02:00
Christian Hesse
922dde3ff0
check-certificates: make the function return a status
2023-04-07 23:01:32 +02:00
Christian Hesse
46110661e0
check-certificates: do not rename certificates without common-name
2023-04-07 23:01:20 +02:00
Christian Hesse
11093045f3
check-certificates: download and import in a local function
2023-04-07 22:53:33 +02:00
Christian Hesse
4073daa139
check-certificates: include SANs in information
2023-04-07 22:53:33 +02:00
Christian Hesse
706e4de6d1
check-certificates: show CommonName only if available
2023-04-06 20:33:01 +02:00
Christian Hesse
a263fcdec2
check-certificates: format information in a local function
2023-04-06 20:33:01 +02:00
Christian Hesse
a832fd04ef
rename scripts and add file extension ".rsc"
...
No functional change for the user... The migration is done
automatically.
2023-03-07 22:26:01 +01:00