[luci] include a switch to disable peer certificate validation in httpclient

This commit is contained in:
Bart Van Der Meerssche 2011-04-16 20:08:29 +02:00
parent 2faf05b58f
commit 2d42dce5f6
1 changed files with 2 additions and 0 deletions

View File

@ -187,6 +187,8 @@ function request_raw(uri, options, sock)
if tls_context_set_verify == "peer" then
tls:set_verify("peer")
tls:set_verify_locations(options.cacert)
elseif tls_context_set_verify == "none" then
tls:set_verify("none")
end
sock = tls:create(sock)