cURL error 77: error setting certificate verify locations CAfile php
In your php.ini file, you should also update your
;openssl.cafile
with the same cacert.pem link you used in updating your
;curl.cainfo
to
(CHECK YOUR PATH TO PHP and cacert.pem file)
openssl.cafile="C:\php-7.4.11\extras\ssl\cacert.pem"
curl.cainfo="C:\php-7.4.11\extras\ssl\cacert.pem"
this fixes the cURL 60 error while
openssl.cafile="C:\php-7.4.11\extras\ssl\cacert.pem" fixes the cURL 77 error.
NB: Do not forget to restart your server before trying it out.
For those who wish to find their php.ini file, use this command after you cd
into your application
php -i | grep 'Configuration File'