Bug #72186 [Opn->Fbk]: SSL certificate problem: unable to get local issuer certificate

From: Date: Thu, 12 May 2016 09:52:22 +0000
Subject: Bug #72186 [Opn->Fbk]: SSL certificate problem: unable to get local issuer certificate
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-201031@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72186&edit=1 ID: 72186 Updated by: ab@php.net Reported by: nbhfgq at gmail dot com Summary: SSL certificate problem: unable to get local issuer certificate -Status: Open +Status: Feedback Type: Bug Package: OpenSSL related Operating System: Windows Server 2012 PHP Version: 7.0.6 Block user comment: N Private report: N New Comment: Thanks for the report. Please gist both teh certs somewhere. Thanks. Previous Comments: ------------------------------------------------------------------------ [2016-05-10 15:48:24] nbhfgq at gmail dot com Description: ------------ On my test server running OpenSSL 1.0.2h on Windows Server 2012. The "newest" cacert.pem fails with an error "SSL certificate problem: unable to get local issuer certificate", however, the cacert.pem from 2014 works. I did post this at openSSL as well... they indicated that it was not a problem with openSSL.[http://rt.openssl.org/Ticket/Display.html?id=4510&user=guest&pass=guest] Test script: --------------- <?php $url = 'https://www.googleapis.com/books/v1/volumes?q=isbn:0747532699'; $req = curl_init($url); curl_setopt($req, CURLOPT_RETURNTRANSFER, TRUE); $result = curl_exec($req); $error = curl_errno($req); if ($error == CURLE_SSL_PEER_CERTIFICATE || $error == CURLE_SSL_CACERT || $error == 77) { curl_setopt($req, CURLOPT_CAINFO, 'C:\xampp\php\cacert.pem'); //modify for your location... $result = curl_exec($req); } if($result === false) { echo 'Curl error: ' . curl_error($req); } else { echo 'Operation completed without any errors'; } ?> ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72186&edit=1

« previous php.bugs (#201031) next »