csv*_*van 4 amazon-web-services aws-cli
我正在使用AWS CLI将证书导入区域us-east-1
,如下所示:
aws acm import-certificate --certificate cert.crt --private-key private.key --certificate-chain chain.crt --profile prof --region us-east-1
Run Code Online (Sandbox Code Playgroud)
这在过去曾用于其他证书,但我最近开始看到以下错误:
An error occurred (ValidationException) when calling the ImportCertificate operation: The private key is not supported.
Run Code Online (Sandbox Code Playgroud)
我已经检查过私钥确实通过openssl与证书匹配,所以我很遗憾这里可能存在什么问题.
openssl rsa -in private.key -check
Run Code Online (Sandbox Code Playgroud)
产量
RSA key ok
Run Code Online (Sandbox Code Playgroud)
可能是什么问题?
我也遇到了这个问题,并在其他地方发现了一个暗示,建议在文件前加上"file://".为我工作.试试看:
aws acm import-certificate --certificate file://cert.crt --private-key file://private.key --certificate-chain file://chain.crt --profile prof --region us-east-1
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
1273 次 |
最近记录: |