When trying to upload a file I get the following error:
Seahorse::Client::NetworkingError: hostname "bucket-name.s3.s3-eu-west-1.amazonaws.com" does not match the server certificate
This is basically because the url should be bucket-name.s3-eu-west-1.amazonaws.com. As you can see the correct url doesn't contain the .s3. after the bucket name and before the region.
After some debugging og the @s3.client.config I can see that there is an endpoint, which is set to URI("https://s3.#{region}.amazonaws.com").
Setting this to URI("https://#{region}.amazonaws.com") fixes this problem.
When trying to upload a file I get the following error:
This is basically because the url should be
bucket-name.s3-eu-west-1.amazonaws.com
. As you can see the correct url doesn't contain the.s3.
after the bucket name and before the region.After some debugging og the
@s3.client.config
I can see that there is anendpoint
, which is set toURI("https://s3.#{region}.amazonaws.com")
.Setting this to
URI("https://#{region}.amazonaws.com")
fixes this problem.