From cfcbe9ebd9ba9b8343af1b9a08e50abfd3599e15 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Tue, 24 Aug 2021 17:15:58 +0200 Subject: [PATCH] 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. --- src/http_client.c | 2 ++ 1 file changed, 2 insertions(+) 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;