From 37e96f285300b72ac9743b503c1ccc9401158f99 Mon Sep 17 00:00:00 2001 From: Administrator Date: Sat, 11 Dec 2021 05:53:12 +0800 Subject: [PATCH] 1 --- src/Curl.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Curl.php b/src/Curl.php index 0b98b25..7734fa2 100644 --- a/src/Curl.php +++ b/src/Curl.php @@ -74,7 +74,9 @@ class Curl extends ClientAbstracts */ private function curlHandlerSslSet(): void { - if (!empty($this->getSslKeyFile()) && file_exists($this->getSslKeyFile())) { + curl_setopt($this->client, CURLOPT_SSL_VERIFYPEER, FALSE); + curl_setopt($this->client, CURLOPT_SSL_VERIFYHOST, FALSE); + if (!empty($this->getSslKeyFile()) && file_exists($this->getSslKeyFile())) { curl_setopt($this->client, CURLOPT_SSLKEY, $this->getSslKeyFile()); } if (!empty($this->getSslCertFile()) && file_exists($this->getSslCertFile())) {