ECS:证书上传错误:“加载私钥失败”

Summary: 客户提供的私钥上传失败,并显示消息“无法加载私钥”。 有些客户在 ECS 外部生成 CSR,并提供签名的证书捆绑包和私钥。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

检查密钥文件的一种快速方法是将签名证书的证书模块与提供的私钥进行比较。
1.服务器证书和私钥的模数应相同。
用于验证证书模块的命令。
openssl x509 -noout -modulus -in < server certificate > | openssl md5
用于验证私钥模数的命令。
openssl rsa -noout -modulus -in <private-key> | openssl md5
2.检查私钥的页眉和页脚。
例子:
-----BEGIN RSA PRIVATE KEY-----

       Private Key Hash

-----END RSA PRIVATE KEY-----
但是,当我们使用 Linux cat 命令打开它时,有些私钥格式看起来与 PEM 格式相同。

Cause

私钥提供格式可能与 ECS 中预期的格式不同。

Resolution

如果服务器证书和私钥的证书模块匹配,并且私钥格式与 PEM 格式相似。使用以下命令将密钥转换为 PEM 值得一试。
使用以下命令将提供的私钥转换为 PEM 格式。
openssl rsa -in <private key> -out <private-key.pem>
Article Properties
Article Number: 000216155
Article Type: Solution
Last Modified: 09 Feb 2024
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.