summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Lallemand <wlallemand@haproxy.org>2021-08-24 17:15:58 +0200
committerWilliam Lallemand <wlallemand@haproxy.org>2021-08-24 17:15:58 +0200
commitcfcbe9ebd9ba9b8343af1b9a08e50abfd3599e15 (patch)
treea7b28c5d1d25e78ccfc25c11a0ee653331d1a53b
parentf3899ddbcbf4c445d4a519fb04cc253e60d30e6e (diff)
downloadhaproxy-cfcbe9ebd9ba9b8343af1b9a08e50abfd3599e15.tar.gz
MINOR: httpclient: set verify none on the https server
There is currently no way to specify the CA to verify from the httpclient API. Sets the verify to none so we can still do https request.
-rw-r--r--src/http_client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http_client.c b/src/http_client.c
index 478a3da07..7c0ac0836 100644
--- a/src/http_client.c
+++ b/src/http_client.c
@@ -707,6 +707,8 @@ static int httpclient_init()
if (!httpclient_srv_ssl->id)
goto err;
+ httpclient_srv_ssl->ssl_ctx.verify = SSL_SOCK_VERIFY_NONE;
+
/* add the proxy in the proxy list only if everything successed */
httpclient_proxy->next = proxies_list;
proxies_list = httpclient_proxy;