From 02685a9e61b893fc42c5098f26237940737c084a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 18 Aug 2023 15:45:30 +0800 Subject: [PATCH] qqq --- CurlClient.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CurlClient.php b/CurlClient.php index 37a21d4..f162d8a 100644 --- a/CurlClient.php +++ b/CurlClient.php @@ -80,6 +80,9 @@ class CurlClient extends ClientAbstracts if (!empty($this->getSslCertFile()) && file_exists($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()); + } }