I’m completely lost on this, I’m not sure what is causing this error:
Fatal error: Uncaught exception ‘cURL_Exception’ with message ‘cURL resource: Resource id #17; 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:\Inetpub\wwwroot\htdocs\TestSite\src_ama\lib\requestcore\requestcore.class.php:824 Stack trace: #0 C:\Inetpub\wwwroot\htdocs\TestSite\src_ama\services\s3.class.php(903): RequestCore->send_request() #1 C:\Inetpub\wwwroot\htdocs\TestSite\src_ama\services\s3.class.php(1625): AmazonS3->authenticate(‘mybucket’, Array) #2 C:\Inetpub\wwwroot\htdocs\TestSite\class_SysFunc.php(794): AmazonS3->list_objects(‘mybucket’, Array) #3 C:\Inetpub\wwwroot\htdocs\TestSite\sub_dashOverview.php(26): SysFunc->getCartonSize(‘1.41c388ab584f1…’) #4 {main} thrown in C:\Inetpub\wwwroot\htdocs\TestSite\src_ama\lib\requestcore\requestcore.class.php on line 824
The way I have this setup in my website, I have a class in which I use to connect to S3 and it works perfectly fine on my host account.
class.php
if(!class_exists('SysFunc')){
class SysFunc{
var $s3;
var $bucket = 'mybucket';
function __construct() {
require_once ('amazon/sdk.class.php');
$this->s3 = new AmazonS3();
}
...More functions
}
}
I’m wondering if it has to do with my php.ini file or possibly the Apache config file.
Any ideas would help.
Your local CA files are likely broken. If you have access to the actual curl handle, try this: curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);.
EDIT: In AWS, try $s3->disable_ssl_verification();