0

我已经下载了适用于 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

4

1 回答 1

0

你必须包括这个:

curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

如果它已经存在,则需要将其更改为 false。希望这可以帮助。

于 2016-04-02T16:36:56.067 回答