mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-21 01:15:42 +02:00
global-functions: $CertificateAvailable: fail without CommonName
This commit is contained in:
parent
a6584170c3
commit
3506f71071
1 changed files with 5 additions and 0 deletions
|
@ -107,6 +107,11 @@
|
|||
"is configured to download certificate CRLs to system!");
|
||||
}
|
||||
|
||||
:if ([ :len $CommonName ] = 0) do={
|
||||
$LogPrint warning $0 ("No CommonName given!");
|
||||
:return false;
|
||||
}
|
||||
|
||||
:if ([ :len [ /certificate/find where common-name=$CommonName ] ] = 0) do={
|
||||
$LogPrint info $0 ("Certificate with CommonName '" . $CommonName . "' not available.");
|
||||
:if ([ $CertificateDownload $CommonName ] = false) do={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue