gpt4 book ai didi

amazon-s3 - Amazon S3 存储桶命名约定导致与证书冲突

转载 作者:行者123 更新时间:2023-12-02 22:56:54 25 4
gpt4 key购买 nike

我将 Amazon S3 存储桶重命名为:“多字名称”

亚马逊建议的最佳命名约定:“多词名称”

问题是这会导致 SSL 证书出现问题:“您尝试访问 multi.word.name.s3.amazonaws.com,但实际上您访问的是一个将自身标识为 *.s3.amazonaws.com 的服务器...”

有什么想法吗?

谢谢

最佳答案

Amazon S3 中的存储桶命名涉及两个潜在问题.

一般情况下符合 DNS 的存储桶命名和 SSL 验证

首先,对于建议的符合 DNS 的存储桶名称约定,仍然存在大量且严重未记录的警告,请参阅 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]

AWS 开发工具包内符合 DNS 的存储桶命名和 SSL 验证

如果您从 AWS SDK for Java 周围的上下文/范围中询问,您可能想使用新的 AWS SDK for Java 1.4.0 重试,其中具有相关的对 S3 主机名 SSL 验证的更改:

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]

请注意,此更改刚刚在昨天发布,我还没有探讨其背景或与上述通用限制的关系,但它可能会对您有所帮助。

祝你好运!

关于amazon-s3 - Amazon S3 存储桶命名约定导致与证书冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15344272/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com