summaryrefslogtreecommitdiffstats
path: root/security-tools/src/main/sh/vespa-curl-wrapper
diff options
context:
space:
mode:
Diffstat (limited to 'security-tools/src/main/sh/vespa-curl-wrapper')
-rwxr-xr-xsecurity-tools/src/main/sh/vespa-curl-wrapper5
1 files changed, 5 insertions, 0 deletions
diff --git a/security-tools/src/main/sh/vespa-curl-wrapper b/security-tools/src/main/sh/vespa-curl-wrapper
index e286e121f64..c2e97febad2 100755
--- a/security-tools/src/main/sh/vespa-curl-wrapper
+++ b/security-tools/src/main/sh/vespa-curl-wrapper
@@ -88,6 +88,11 @@ then
CURL_PARAMETERS=("${CURL_PARAMETERS[@]/http:/https:}")
fi
+if [ -n "${VESPA_TLS_DISABLE_HOSTNAME_VALIDATION}" ]
+then
+ CURL_PARAMETERS=("--insecure" "${CURL_PARAMETERS[@]}")
+fi
+
if [ -n "${VESPA_TLS_CA_CERT}" ]
then
CURL_PARAMETERS=("--cacert" "${VESPA_TLS_CA_CERT}" "${CURL_PARAMETERS[@]}")