From b9a7eda0946195daad8997f6090395f1c05c047b Mon Sep 17 00:00:00 2001
From: diamondsea <diamondsea@430714.no-reply.drupal.org>
Date: Wed, 6 Jan 2016 21:31:10 +0100
Subject: [PATCH] Issue #2644868 by diamondsea: Skip verification of the
 certificate's name when accepting invalid SSL certificates.

---
 libraries/http_request.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libraries/http_request.inc b/libraries/http_request.inc
index ed96b0c2..39cd0ed4 100644
--- a/libraries/http_request.inc
+++ b/libraries/http_request.inc
@@ -196,6 +196,7 @@ function http_request_get($url, $username = NULL, $password = NULL, $accept_inva
 
       if ($accept_invalid_cert) {
         curl_setopt($download, CURLOPT_SSL_VERIFYPEER, 0);
+        curl_setopt($download, CURLOPT_SSL_VERIFYHOST, 0);
       }
       $header = '';
       $data = curl_exec($download);
-- 
GitLab