S3 Backups fail with SSLError

(Geoff Bowers) #1

I set up a dedicated S3 bucket to receive backups. Backup appears to build ok but errors trying to move the backup to the bucket.

[2014-04-11 13:40:50] Executing the after_create_hook for the backup
[2014-04-11 13:40:52] EXCEPTION: hostname "discourse-bks.farcrycore.org.s3.amazonaws.com" does not match the server certificate (OpenSSL::SSL::SSLError)

If I go to http://discourse-bks.farcrycore.org.s3.amazonaws.com/ I get an access-denied error which I expect, given its a private bucket. But hitting https://discourse-bks.farcrycore.org.s3.amazonaws.com/ I get a general SSL certificate error. Is it an Amazon S3 issue, or have i made a mess of things already?

Have double checked the security policy and all seems well – note, images/files appear to upload just fine to S3. It’s just the backups that are borked.

Any help much appreciated.

Setting up file and image uploads to S3
(Jeff Atwood) #2

You have a bucket with periods in it. Things will end badly for you.


Switch to a bucket without periods.

(Jeff Atwood) closed #3