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.伺服器證書和私鑰的模數應相同。
驗證憑證模數的命令。
範例:
1.伺服器證書和私鑰的模數應相同。
驗證憑證模數的命令。
openssl x509 -noout -modulus -in < server certificate > | openssl md5驗證私密金鑰模組的命令。
openssl rsa -noout -modulus -in <private-key> | openssl md52.檢查私鑰的頁眉和頁腳。
範例:
-----BEGIN RSA PRIVATE KEY-----
Private Key Hash
-----END RSA PRIVATE KEY----- 但是,當我們使用 Linux cat 命令打開私鑰格式時,有些私鑰格式看起來與 PEM 格式相同。Cause
私密金鑰提供的格式可能與 ECS 中預期不同。
Resolution
如果伺服器證書的證書模組和私鑰匹配,並且私鑰格式類似於 PEM 格式。使用以下命令隱蔽 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.