I got this SSL error when I want to use a PHP library to access AWS SES. The complete error said
60 SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
I found that it is related to curl setting in php.ini. It needs to know what certificate you use for curl. Because I haven't define the certificate yet, so this error came up.
First Solution
Download certificate file from http://curl.haxx.se/ca/cacert.pem
Open your php.ini and add these line below. Make sure the certificate's path is correct.
;;;;;;;;;;;;;;;;;;; ; CURL Options ; ;;;;;;;;;;;;;;;;;;;
curl.cainfo=\your-path-to\cacert.pem
Restart your server
Second Solution
If you can't access and modify php.ini, you need to add this line before curl_exec()
curl_setopt ($ch, CURLOPT_CAINFO, "YOUR_PATH_TO/cacert.pem");
Don't forget to download certificate first from http://curl.haxx.se/ca/cacert.pem
Third Solution
This method is not recommended due to security issues. Just need to add the line before curl_exec()
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
Hope it helps.