Tôi đang cố gắng để kiểm tra trong PHP Amazon S3 trên localhost của tôi, nhưng vẫn gặp lỗi tương tự:Amazon S3 trên wamp localhost lỗi SSL
Fatal error: Uncaught exception 'cURL_Exception' with message 'cURL resource: Resource id #69; 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:\wamp\www\mysite\application\libraries\awsphp\lib\requestcore\requestcore.class.php:829 Stack trace: #0 C:\wamp\www\mysite\application\libraries\awsphp\sdk.class.php(1034): RequestCore->send_request() #1 C:\wamp\www\mysite\application\libraries\awsphp\services\sqs.class.php(250): CFRuntime->authenticate('ListQueues', Array) #2 C:\wamp\www\mysite\application\libraries\awsphp\services\sqs.class.php(582): AmazonSQS->authenticate('ListQueues', Array) #3 C:\wamp\www\mysite\application\controllers\uploads.php(33): AmazonSQS->list_queues() #4 [internal function]: Uploads->aw3() #5 C:\wamp\www\mysite\system\core\CodeIgniter.php(359): call_user_func in C:\wamp\www\mysite\application\libraries\awsphp\lib\requestcore\requestcore.class.php on line 829
mã kiểm tra:
$sqs = new AmazonSQS();
$response = $sqs->list_queues();
var_dump($response->isOK());
tôi cài đặt đúng AWS SDK cho các tệp php và bật CURL và SSL trên máy chủ cục bộ của tôi. Tôi có thể làm gì để thực hiện công việc này? Tôi không thể tìm thấy bất kỳ trợ giúp trực tuyến nào. Tôi đang sử dụng wamp.
tôi có một vấn đề tương tự http://stackoverflow.com/questions/12253812/aws-s3-batch-upload-from -localhost-php-lỗi nhưng sửa chữa bên dưới không hoạt động –