我正在使用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
这在过去对其他证书有效,但最近我发现了以下错误:
An error occurred (ValidationException) when calling the ImportCertificate operation: The private key is not supported.
我已经检查了私钥是否确实通过openssl与证书匹配,因此我完全弄不清这里可能存在什么问题。
openssl rsa -in private.key -check
产量
RSA key ok
问题可能是什么?