Add rd.noverifyssl argument (#852229)
PATCH 1/1 Add rd.noverifyssl argument (#852229)
From: "Brian C. Lane" <[email protected]>
This adds --insecure to the curl args so that self-signed certificates will be accepted.
--- modules.d/45url-lib/url-lib.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
modules.d/45url-lib/url-lib.sh +2 -1
@@ -54,7 +54,8 @@ add_url_handler() { export CURL_HOME="/run/initramfs/url-lib" mkdir -p $CURL_HOME -curl_args="--location --retry 3 --fail --show-error --insecure" +curl_args="--location --retry 3 --fail --show-error" +getargbool 0 rd.noverifyssl && curl_args+=" --insecure" curl_fetch_url() { local url="$1" outloc="$2"
Signature · 1 line
1.7.11.4