What to do when you see curl: (60) SSL certificate problem: unable to get local issuer certificate error?
Error “curl: (60) SSL certificate problem: unable to get local issuer certificate” can be seen when the SSL certificate on the server is not verified or properly configured. In order to fix this please follow the steps below:
-
Download the latest cacert.pem from https://curl.haxx.se/ca/cacert.pem
-
Add the following line to php.ini: (if this is shared hosting and you don’t have access to php.ini then you could add this to .user.ini in public_html).
curl.cainfo="/path/to/downloaded/cacert.pem"