1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00: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:
Christian Hesse
2020-01-29 09:27:00 +01:00
parent 74f6449e8a
commit 801dce05fa

View File

@ -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;