mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-24 18:48:37 +02:00
global-functions: $CertificateAvailable: warn about crl download to flash
Downloading certificate crls to flash can fill up all available space. So warn about it!
This commit is contained in:
parent
74f6449e8a
commit
801dce05fa
1 changed files with 6 additions and 0 deletions
|
@ -117,6 +117,12 @@
|
|||
|
||||
:global CertificateDownload;
|
||||
|
||||
:if ([ / system resource get free-hdd-space ] < 8388608 && \
|
||||
[ / certificate settings get crl-download ] = true && \
|
||||
[ / certificate settings get crl-store ] = "system") do={
|
||||
:log warn "This system has low free flash space but is configured to download certificate CRLs to system!";
|
||||
}
|
||||
|
||||
:if ([ / certificate print count-only where common-name=$CommonName ] = 0) do={
|
||||
:log info ("Certificate with CommonName \"" . $CommonName . "\" not available.");
|
||||
$CertificateDownload $CommonName;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue