mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-08-02 01:04:33 +02:00
check-certificates: update certificates for ipsec identities
This commit is contained in:
parent
72d7050423
commit
04b7b1f3b5
1 changed files with 12 additions and 1 deletions
|
@ -39,12 +39,23 @@
|
|||
/ ip service set $IpService certificate=$CertNameNew;
|
||||
}
|
||||
|
||||
: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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue