mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-13 11:34:31 +02:00
check-certificates: wait to be fully connected
This commit is contained in:
parent
eaffb1dbd2
commit
b68b997c1e
1 changed files with 2 additions and 4 deletions
|
@ -17,18 +17,16 @@
|
||||||
:global ParseKeyValueStore;
|
:global ParseKeyValueStore;
|
||||||
:global SendNotification;
|
:global SendNotification;
|
||||||
:global SymbolForNotification;
|
:global SymbolForNotification;
|
||||||
:global TimeIsSync;
|
|
||||||
:global UrlEncode;
|
:global UrlEncode;
|
||||||
:global WaitForFile;
|
:global WaitForFile;
|
||||||
|
:global WaitFullyConnected;
|
||||||
|
|
||||||
:local FormatExpire do={
|
:local FormatExpire do={
|
||||||
:global CharacterReplace;
|
:global CharacterReplace;
|
||||||
:return [ $CharacterReplace [ $CharacterReplace [ :tostr $1 ] "w" "w " ] "d" "d " ];
|
:return [ $CharacterReplace [ $CharacterReplace [ :tostr $1 ] "w" "w " ] "d" "d " ];
|
||||||
}
|
}
|
||||||
|
|
||||||
:if ([ $TimeIsSync ] = false) do={
|
$WaitFullyConnected;
|
||||||
$LogPrintExit warning ("Time is not yet synchronized.") true;
|
|
||||||
}
|
|
||||||
|
|
||||||
:foreach Cert in=[ / certificate find where !revoked !ca !scep-url expires-after<3w ] do={
|
:foreach Cert in=[ / certificate find where !revoked !ca !scep-url expires-after<3w ] do={
|
||||||
:local CertVal [ / certificate get $Cert ];
|
:local CertVal [ / certificate get $Cert ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue