Open adamekcerv opened 1 year ago
Hello @adamekcerv,
it seems that you have PHP configured properly, but PEM file is not accessible in that location. Check if file C:/php-8.2.7/cacert.pem
really exists and it is readable, eg via command dir C:\wamp64\cacert.pem
.
From curl.se documentation:
CURLE_SSL_CACERT_BADFILE (77) Problem with reading the SSL CA cert (path? access rights?)
Hi, I am getting this fatal error even if I updated my curl and dlownlaoded the latest cacert.pem file and set the php.ini. I am using php-8.2.7 openssl.cafile= "C:/php-8.2.7/cacert.pem" curl.cainfo = "C:/php-8.2.7/cacert.pem"
C:\Users\cervenka\mapycz-api\examples>php loadPoi.php PHP Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 77: error setting certificate file: C:/php-8.2.7/cacert.pem (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://pro.mapy.cz/poiagg in C:\Users\cervenka\mapycz-api\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:211 Stack trace: