I am experiencing a very strange error with AWS and the PHP SDK. I am able to connect to S3 with my PHP code and store objects in my bucket when using my local server on my laptop. I am also able to connect to S3 on our test/staging server. However, on our production server, I keep getting the following error when I try to connect:
cURL resource: Resource id #8; cURL error: Problem with the SSL CA cert (path? access rights?) (77)
I have tried adding this line in the config.inc.php file for AWS SDK, which was a solution mentioned in the AWS forums:
define('AWS_CERTIFICATE_AUTHORITY', true);
But the error still persists. Any idea what may be wrong or how I can trouble shoot something like this?
Here's what it says in the Apache error log:
About to connect() to mydb.s3.amazonaws.com port 443 (#0) * Trying 223.33.211.223... * connected * Connected to mydb.s3.amazonaws.com (223.33.211.223) port 443 (#0) * Initializing NSS with certpath: /etc/pki/nssdb * Unable to initialize NSS database * NSS error -8023 * Closing connection #0 * Problem with the SSL CA cert (path? access rights?)
Cheers!