GeoIP2-php: cURL error (77): error setting certificate verify locations:
Lately, I’ve been getting this error:
Uncaught MaxMind\Exception\HttpException: cURL error (77): error setting certificate verify locations:
I’ve tried downloading certs from http://curl.haxx.se/ca/cacert.pem
and installing them on my Ubuntu 16.04 system in /etc/ssl/certs
, but it does not fix the problem.
I’ve also tried setting curl.cainfo="/etc/ssl/certs/cacert.pem"
in my php.ini
and that makes no difference.
If I edit the MaxMind\Webservice\Http\CurlRequest.php
file and set CURLOPT_SSL_VERIFYPEER
to false, it starts working again. However, this is not the best solution.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 23 (5 by maintainers)
I can confirm that version 1.2.3 fixes the problem. Thanks for the fast work.
Thanks, @exussum12! I will close this issue again.
If you update to 1.2.3 (just been released) it should be resolved. Sorry for the inconvenience the feature added was to get the certificates from openssl itself. It seems that its not reliable to use what openssl suggests