Reputation: 45
I renamed an Amazon S3 Bucket from: "multi-word-name"
to what Amazon suggests as being the best naming convention: "multi.word.name"
The problem is that this causes a problem with the SSL certificate: "You attempted to reach multi.word.name.s3.amazonaws.com, but instead you actually reached a server identifying itself as *.s3.amazonaws.com ..."
Any ideas?
Thanks
Upvotes: 3
Views: 2140
Reputation: 64761
There are two potential issues involved with bucket naming in Amazon S3.
First and foremost, there is a huge and severely under documented caveat in place still regarding the suggested DNS compliant bucket name convention, see Virtual Hosting of Buckets:
When using virtual hosted-style buckets with SSL, the SSL wild card certificate only matches buckets that do not contain periods. To work around this, use HTTP or write your own certificate verification logic. [emphasis mine]
In case you are asking from a context/scope around the AWS SDK for Java, you might want to try again with the new AWS SDK for Java 1.4.0, which features related Changes to S3 host name SSL verification:
The Amazon S3 client is now less strict when validating host names, when using DNS-style bucket addressing (the default). Now any domain ending in s3.amazonaws.com will bypass the strict SSL checking requirements. This change fixes issues experienced by customers in non-US regions using buckets with periods in the name. [emphasis mine]
Please note that this change has been released just yesterday and I haven't explored either its background or its relation to the aforementioned generic restriction yet, but it might help you on your way.
Good luck!
Upvotes: 3