我已经下载了适用于 PHP 的 AWS(Amazon) SDK 并放置了亚马逊网络服务所需的凭证。然后我运行示例文件夹中的示例代码文件名(cli-ec2_sorting_and_filtering.php),我收到以下错误。
Fatal error: Uncaught exception 'cURL_Exception' with message 'cURL resource: Resource id #13; cURL error: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed (cURL error code 60). See http://curl.haxx.se/libcurl/c/libcurl-errors.html for an explanation of error codes.' in C:\xampp\htdocs\amazon\lib\requestcore\requestcore.class.php:843 Stack trace: #0 C:\xampp\htdocs\amazon\sdk.class.php(1037): RequestCore->send_request() #1 C:\xampp\htdocs\amazon\services\ec2.class.php(2270): CFRuntime->authenticate('DescribeImages', Array) #2 C:\xampp\htdocs\amazon\_samples\cli-ec2_sorting_and_filtering.php(62): AmazonEC2->describe_images() #3 {main} thrown in C:\xampp\htdocs\amazon\lib\requestcore\requestcore.class.php on line 843