PHP cURL Error Code 60: Troubleshooting and Resolution
When attempting to use the Amazon PHP SDK in a Windows environment (with WAMP), users may encounter a "cURL resource: Resource id #10; cURL error: SSL certificate problem" error with code 60.
To address this issue, the following steps should be considered:
The error indicates a problem with the SSL certificate chain. Verify that you have a trusted certificate authority (CA) bundle installed. Download the root certificate bundle from https://curl.haxx.se/ca/cacert.pem, save it to your local disk, and specify its location in php.ini using:
curl.cainfo = "path_to_cert/cacert.pem"
Once the ca info is updated in php.ini, it's important to restart the WAMP service to ensure the changes take effect.
By implementing these steps, you can resolve PHP cURL error code 60 and establish a secure connection to the Amazon API Gateway.
The above is the detailed content of How to Troubleshoot and Resolve PHP cURL Error Code 60 in a Windows Environment?. For more information, please follow other related articles on the PHP Chinese website!