This commit is contained in:
2021-12-11 05:54:52 +08:00
parent 37e96f2853
commit a3c89b419b
+2 -2
View File
@@ -74,8 +74,8 @@ class Curl extends ClientAbstracts
*/ */
private function curlHandlerSslSet(): void private function curlHandlerSslSet(): void
{ {
curl_setopt($this->client, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($this->client, CURLOPT_SSL_VERIFYPEER, TRUE);
curl_setopt($this->client, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($this->client, CURLOPT_SSL_VERIFYHOST, TRUE);
if (!empty($this->getSslKeyFile()) && file_exists($this->getSslKeyFile())) { if (!empty($this->getSslKeyFile()) && file_exists($this->getSslKeyFile())) {
curl_setopt($this->client, CURLOPT_SSLKEY, $this->getSslKeyFile()); curl_setopt($this->client, CURLOPT_SSLKEY, $this->getSslKeyFile());
} }