Home > PHP > SSL certificate error: unable to get local issuer certificate

Step 1. Download http://curl.haxx.se/ca/cacert.pem and save it to /Applications/AMPPS/extra/etc/openssl/certs/cacert.pem

Step 2. Add the below lines into php.ini

[curl]
curl.cainfo="/Applications/AMPPS/extra/etc/openssl/certs/cacert.pem"
openssl.cafile="/Applications/AMPPS/extra/etc/openssl/certs/cacert.pem"



Flag Counter