cURL error 60: SSL certificate problem…

PHP reports this error in curl:

cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

Query 60 errors according to the address indicated after the error report:

CURLE_SSL_CACERT (60)
Peer certificate cannot be authenticated with known CA certificates.

Unable to obtain local issuer certificate
Solution: (http://stackoverflow.com/questions/29822686/curl-error-60-ssl-certificate-unable-to-get-local-issuer-certificate) search on the net
Error regarding “SSL Certificate Problem: Unable to obtain local issuer certificate”. Obviously, this applies to the system that sends CURL requests (and the server that doesn’t receive them)
1) from https://curl.haxx.se/ca/cacert.pem. Download the latest cacert pem
2) Add the following line to php.ini (if this is Shared hosting and you do not have access to php.ini then you can add to.user.ini in public_html)
curl.cainfo=/path/to/downloaded/cacert.pem
3) by default, the FastCGI process will analytical new file every 300 seconds (if needed, you can add several files to change frequency, such as suggested here https://ss88.uk/blog/fast-cgi-and-user-ini – files – the – new – htaccess file /)

Read More: