Error in AWS SDK for PHP: cURL error: SSL certificate problem

When using the AWS SDK for PHP, you might run into a SSL certificate problem. This problem could look like the following:


// //

Fatal error: Uncaught exception ‘cURL_Exception’ with message ‘cURL resource: Resource id #18; 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 for an explanation of error codes.’ in C:Program Files (x86)PHPv5.3pearAWSSDKforPHPlibrequestcorerequestcore.class.php:843 Stack trace: #0 C:Program Files (x86)PHPv5.3pearAWSSDKforPHPsdk.class.php(1034): RequestCore->send_request() #1 C:Program Files (x86)PHPv5.3pearAWSSDKforPHPservicesses.class.php(399): CFRuntime->authenticate(‘SendEmail’, Array) #2 C:inetpubwwwrootwordpresswordpresswp-contentthemestwentyelevensingle.php(23): AmazonSES->send_email(‘…’, Array, Array) #3 C:inetpubwwwrootwordpresswordpresswp-includestemplate-loader.php(43): include(‘C:inetpubwwwr…’) #4 C:inetpubwwwrootwordpresswordpresswp-blog-header.php(16): require_once( in C:Program Files (x86)PHPv5.3pearAWSSDKforPHPlibrequestcorerequestcore.class.php on line 843

The reason for this is that you might have misconfigured your Certificate Settings. To find that section, go to your “” File in your SDK’s Directory. The file is used to store your credentials and connection settings. Find the variable that says “certificate_authority”. If it is set to “false”, you have to specifiy the File that holds your Connection Settings. If you use the SDKs File (if you haven’t changed any SSL settings), change this value to “true”. Now you should be fine. Make sure that your SSL settings are secure and avoid “man in the middle” attacks!

I lead a team of Senior Experts in Data & Data Science as Head of Data & Analytics and AI at A1 Telekom Austria Group. I also teach this topic at various universities and frequently speak at various Conferences. In 2010 I wrote a book about Cloud Computing, which is often used at German & Austrian Universities. In my home country (Austria) I am part of several organisations on Big Data & Data Science.

0 comments on “Error in AWS SDK for PHP: cURL error: SSL certificate problem

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: