diff options
author | Christian Hesse <mail@eworm.de> | 2020-01-29 09:27:00 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-01-29 09:27:00 +0100 |
commit | 801dce05fa593f61103a0e48d2175bcc58c061a0 (patch) | |
tree | 4cd71e713b5ccd03bf48a992c05bce4fa5058bd5 /global-functions | |
parent | 74f6449e8ac06e30af5511c1876ee518ae8926b9 (diff) |
global-functions: $CertificateAvailable: warn about crl download to flash
Downloading certificate crls to flash can fill up all available space.
So warn about it!
Diffstat (limited to 'global-functions')
-rw-r--r-- | global-functions | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/global-functions b/global-functions index 78c8a9f..9c58450 100644 --- a/global-functions +++ b/global-functions @@ -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; |