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.
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3