note 125326 added to curl.configuration

From: Date: Fri, 04 Sep 2020 05:36:25 +0000
Subject: note 125326 added to curl.configuration
Groups: php.notes 
Request: Send a blank email to php-notes+get-215068@lists.php.net to get a copy of this message
cURL error 60: SSL certificate problem: unable to get local issuer certificate This local development error comes when curl.cainfo variable is not set correctly. I faced this issue in PHP Version 7.3.1 In order to fix the error, I downloaded cacert.pem from https://curl.haxx.se/docs/caextract.html Set the following paths in php.ini curl.cainfo="D:\wamp64\bin\php\php7.3.1\extras\ssl\cacert.pem" openssl.cafile="D:\wamp64\bin\php\php7.3.1\extras\ssl\cacert.pem" Even after adding the paths and restart Apache, Inside phpinfo(), both the paths were showing blank. The error will go only if we set via php code of the project. Example code worked for me :- $guzzle = new \GuzzleHttp\Client(['verify' => 'D:\wamp64\bin\php\php7.3.1\extras\ssl\cacert.pem']); ---- Server IP: 45.112.84.4 Probable Submitter: 103.51.167.36 (proxied: 202.83.44.230) ---- Manual Page -- http://php.net/manual/en/curl.configuration.php Edit -- https://master.php.net/note/edit/125326 Del: integrated -- https://master.php.net/note/delete/125326/integrated Del: useless -- https://master.php.net/note/delete/125326/useless Del: bad code -- https://master.php.net/note/delete/125326/bad+code Del: spam -- https://master.php.net/note/delete/125326/spam Del: non-english -- https://master.php.net/note/delete/125326/non-english Del: in docs -- https://master.php.net/note/delete/125326/in+docs Del: other reasons-- https://master.php.net/note/delete/125326 Reject -- https://master.php.net/note/reject/125326 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#215068) next »