From d3992c13a08d7dec8529dbca888e92699eaba931 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 13 Oct 2023 14:54:20 +0200 Subject: mod/notification-ntfy: check for root certificate availability ... at least with default server. --- mod/notification-ntfy.rsc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mod') 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={ -- cgit v1.2.3-54-g00ecf