Trouble uploading images to AWS s3 and XAMPP

So I needed to get my local xampp development site working with AWS s3 to store images.  I had it set up and working on my development server but I needed my local development to work as well. Unfortunately I kept getting this error.

Aws\S3\Exception\S3Exception with message ‘Error executing “ListObjects” on “”; AWS HTTP error: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see’

I Googled for a solution and everywhere I found that I needed to change my php.ini file to include a certificate. Unfortunately everywhere told me to get a clean cacert.pem and do the following in the php.ini file.

This did not work for me.  More searching and a bit of trial and error lead me to this.

And badda-bing badda-boom it works!

Hope this helps someone save some hours.

Leave a Reply

Your email address will not be published. Required fields are marked *