PHP cURL Error Code 60: Resolving SSL Certificate Issue
When utilizing cURL in PHP with Windows environments, the "SSL certificate problem" error (cURL error code 60) can arise. This indicates an inability to retrieve the issuing certificate locally.
To resolve this issue, ensure that the following steps have been taken:
Add the cainfo setting to PHP.ini:
In your PHP.ini file, add the following line:
curl.cainfo = C:\Windows\ca-bundle.crt
Restart web server:
Use a reliable certificate:
Update cainfo setting:
In your PHP.ini file, update the cainfo setting to point to the downloaded certificate bundle:
curl.cainfo = "path_to_cert\cacert.pem"
By following these steps, you can ensure that cURL has access to a trusted certificate, resolving the error and allowing you to successfully execute the Amazon PHP SDK.
The above is the detailed content of How to Resolve PHP cURL Error Code 60: SSL Certificate Problem. For more information, please follow other related articles on the PHP Chinese website!