Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Fatal error #2

Open
adamekcerv opened this issue Jun 12, 2023 · 1 comment
Open

PHP Fatal error #2

adamekcerv opened this issue Jun 12, 2023 · 1 comment

Comments

@adamekcerv
Copy link

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:

@DJTommek
Copy link
Owner

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?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants