This commit is contained in:
2023-08-18 15:45:30 +08:00
parent 1b5232f5e7
commit 02685a9e61
+3
View File
@@ -80,6 +80,9 @@ class CurlClient extends ClientAbstracts
if (!empty($this->getSslCertFile()) && file_exists($this->getSslCertFile())) { if (!empty($this->getSslCertFile()) && file_exists($this->getSslCertFile())) {
curl_setopt($this->client, CURLOPT_SSLCERT, $this->getSslCertFile()); curl_setopt($this->client, CURLOPT_SSLCERT, $this->getSslCertFile());
} }
if (!empty($this->getCa()) && file_exists($this->getCa())) {
curl_setopt($this->client, CURLOPT_CAINFO, $this->getCa());
}
} }