aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-01-19 13:23:52 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-01-19 13:23:52 +0100
commita2749b276003a90b95b9723e287542be56c0d0c1 (patch)
tree0612c131367b8787ad4d1153b0b2e86c0ef187db
parent0ad1a79d677ad26ad586238efcff59cf58d703ec (diff)
check-certificates: use prepared user-agent string with fetch
-rw-r--r--check-certificates.rsc3
1 files changed, 2 insertions, 1 deletions
diff --git a/check-certificates.rsc b/check-certificates.rsc
index 5f2c710..715a6b7 100644
--- a/check-certificates.rsc
+++ b/check-certificates.rsc
@@ -17,6 +17,7 @@
:global CertificateAvailable
:global EscapeForRegEx;
+:global FetchUserAgent;
:global IfThenElse;
:global LogPrintExit2;
:global ParseKeyValueStore;
@@ -43,7 +44,7 @@
:foreach Type in={ ".pem"; ".p12" } do={
:local CertFileName ([ $UrlEncode $Name ] . $Type);
:do {
- /tool/fetch check-certificate=yes-without-crl \
+ /tool/fetch check-certificate=yes-without-crl http-header-field=({ $FetchUserAgent }) \
($CertRenewUrl . $CertFileName) dst-path=$CertFileName as-value;
$WaitForFile $CertFileName;