【发布时间】:2016-02-07 16:00:38
【问题描述】:
我正在尝试使用 aws 命令行工具上传我的证书。这就是我正在尝试的方式:
aws iam upload-server-certificate \
--server-certificate-name naosalvo.com \
--certificate-body file://naosalvo.crt \
--private-key file://naosalvo.key \
--certificate-chain file://naosalvo1-ca.pem \
--path /cloudfront/
我收到了这个错误:
A client error (MalformedCertificate) occurred when calling the UploadServerCertificate operation: 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
我不知道是什么问题。而且,我有两个 pem:
naosalvo1-ca.pem 和 naosalvo2-ca.pem
我不应该同时上传吗?怎么样?
【问题讨论】:
标签: amazon-web-services ssl amazon-s3 certificate