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

 

//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js //

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 http://curl.haxx.se/libcurl/c/libcurl-errors.html 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(‘mario.mh@cloudv…’, 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 “config.inc.php” 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!

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!