How to Resolve PHP cURL Error Code 60 While Using Amazon PHP SDK
When attempting to establish a PHP environment on Windows using WAMP and the Amazon PHP SDK, a user encounters error code 60: "SSL certificate problem: unable to get local issuer certificate."
Problem Details:
The error message indicates that cURL is unable to locate the certificate's issuer during SSL verification. This can occur when the local certificate bundle is missing or invalid.
Original Resolution Attempt:
The user has added the following line to php.ini:
curl.cainfo = C:\Windows\ca-bundle.crt
However, this has not resolved the issue.
Alternative Solution:
curl.cainfo = "path_to_cert\cacert.pem"
Restart your web server and attempt to run the sample test again. The error code 60 should be resolved.
The above is the detailed content of How to Fix cURL Error Code 60 \'SSL Certificate Problem\' in Amazon PHP SDK on Windows?. For more information, please follow other related articles on the PHP Chinese website!