Paypal Access – SSL certificate: unable to get local issuer certificate

The correct solution is to fix your PHP setup.. setting CURLOPT_SSL_VERIFYPEER to false is a quick hack, but it’s wrong as you disable the certificate validation by it’s certificate authority. This exposes you to a man-in-the-middle attack.

It’s easy to fix (php 5.3.7 or higher) –
Download a list file with an up-to-date certificate authorities, and add this setting to your php.ini

curl.cainfo=<path-to>cacert.pem

Restart your web server, and it’ll work !

Leave a Comment