aboutsummaryrefslogtreecommitdiffstats
path: root/check-certificates
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-03-25 16:49:26 +0100
committerGravatar Christian Hesse <mail@eworm.de>2019-03-25 16:49:26 +0100
commit04b7b1f3b58eab5c8689b3ab8ba23d9f9bfb7838 (patch)
treee3a7fbe1bab5381c8e04f636e8f843c971b6c673 /check-certificates
parent72d7050423ff6a518fbedd2f6c41377f125a25e5 (diff)
check-certificates: update certificates for ipsec identities
Diffstat (limited to 'check-certificates')
-rw-r--r--check-certificates13
1 files changed, 12 insertions, 1 deletions
diff --git a/check-certificates b/check-certificates
index 9508f35..3a72440 100644
--- a/check-certificates
+++ b/check-certificates
@@ -40,11 +40,22 @@
}
:do {
+ :foreach Identity in=[ / ip ipsec identity find where certificate=$CertName ] do={
+ / ip ipsec identity set $Identity certificate=$CertNameNew;
+ }
+ :foreach Identity in=[ / ip ipsec identity find where remote-certificate=$CertName ] do={
+ / ip ipsec identity set $Identity remote-certificate=$CertNameNew;
+ }
+ } on-error={
+ :log debug ("Setting IPSEC certificates failed. Package 'security' not installed?");
+ }
+
+ :do {
:foreach Hotspot in=[ / ip hotspot profile find where ssl-certificate=$CertName ] do={
/ ip hotspot profile set $Hotspot ssl-certificate=$CertNameNew;
}
} on-error={
- :log debug ("Setting hotspot certificates failed. Hotspot package not installed?");
+ :log debug ("Setting hotspot certificates failed. Package 'hotspot' not installed?");
}
/ certificate remove $Cert;