diff options
author | Christian Hesse <mail@eworm.de> | 2023-10-13 14:54:20 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2023-10-17 14:05:03 +0200 |
commit | d3992c13a08d7dec8529dbca888e92699eaba931 (patch) | |
tree | abfda4363207a49c08ad01ea0e403d95135d1408 /mod/notification-ntfy.rsc | |
parent | 5932586ee4c573903dbd40b4f422ffb2819b9ba2 (diff) |
mod/notification-ntfy: check for root certificate availability
... at least with default server.
Diffstat (limited to 'mod/notification-ntfy.rsc')
-rw-r--r-- | mod/notification-ntfy.rsc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/notification-ntfy.rsc b/mod/notification-ntfy.rsc index a94e1be..e2fc558 100644 --- a/mod/notification-ntfy.rsc +++ b/mod/notification-ntfy.rsc @@ -63,6 +63,7 @@ :global NtfyTopic; :global NtfyTopicOverride; + :global CertificateAvailable; :global EitherOr; :global IfThenElse; :global LogPrintExit2; @@ -85,6 +86,11 @@ } :do { + :if ($NtfyServer = "ntfy.sh") do={ + :if ([ $CertificateAvailable "R3" ] = false) do={ + $LogPrintExit2 warning $0 ("Downloading required certificate failed.") true; + } + } /tool/fetch check-certificate=yes-without-crl output=none http-method=post \ $Url http-header-field=$Headers http-data=$Text as-value; } on-error={ |