【发布时间】:2016-09-25 14:59:26
【问题描述】:
SSL2Buy 为我提供了三个文件:mysite.ssl2.crt、mysite.ssl2.intermediate 和 mysite.ssl2.key。我不相信中间文件算作证书链,但我不知道如何找到证书链。有人知道吗?
我从 AWS 得到的错误是这样的(当我尝试将中间文件作为证书链时):Unable to validate certificate chain. The certificate chain must start with the immediate signing certificate, followed by any intermediaries in order. The index within the chain of the invalid certificate is: -1 (Service: AmazonIdentityManagement; Status Code: 400; Error Code: MalformedCertificate; Request ID: <redacted>)
我的网站已经安装了适当的 SSL。我只是想向 API Gateway 提供证书链。
【问题讨论】:
-
我也试过
openssl s_client -host mysite.com -port 443 -prexit -showcerts。我不完全确定我应该复制/粘贴其中的哪一部分,但我尝试了多种变体,但到目前为止都没有奏效。 -
“我不相信中间文件算作证书链” 是的,确实如此,但有些 CA 以错误的顺序为您提供链(我不知道为什么,我假设一些网络服务器也期望它们以错误的顺序排列,所以它们是“有帮助的”)但它相对容易解决。中间文件中有多少个证书? (您可以通过计算文件中的
BEGIN/END块来确定这一点)。 -
@Michael-sqlbot 只有一个。我记得我想把这一切都放在我的 CDN 后面,所以我设法让这个工作正常进行,所以我只是使用默认网关作为源,让我的 CDN 为我做路由。 :P 对未来的人不是很有帮助,但我确实尝试了所有这些答案和 cmets,但无论出于何种原因,它们都没有奏效。
标签: amazon-web-services ssl aws-api-gateway