Skip to contentSkip to conversation

Add rd.noverifyssl argument (#852229)

PATCH New Brian C. Lane 1 participant 1 message Oct 8, 2012

lore
Share & tools
lore
#0 lore raw

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
index a8069ef..034a7cd 100755
@@ -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