将OpenSSL生成的私钥导入Oracle Wallet

问题描述 投票:0回答:3

我有一个根据 OpenSSL 证书签名请求创建的私钥。 CA 已接受 CSR 并给了我证书。当我尝试使用 orapki 导入 Oracle Wallet 时,出现错误“钱包中没有匹配的私钥”。当我尝试像导入任何用户证书一样导入私钥时,我收到“无效证书”。我已经添加了所有受信任的证书。

以下是使用的命令:

orapki wallet add -wallet ewallet.p12 -user_cert -cert public.p12 
orapki wallet add -wallet ewallet.p12 -user_cert -cert private.txt

我假设有办法将私钥添加到钱包中?

oracle ssl openssl certificate ssl-certificate
3个回答
0
投票

您无法导入 KEY。

密钥已经是钱包的一部分,您需要使用 ORAPKI 创建证书请求,因为密钥将成为请求的一部分。

您无法使用其他钱包的请求创建证书,然后尝试将所有内容安装到已有密钥的新钱包中。


0
投票

您可以从 openssl 密钥库创建 orapki 钱包作为引入私钥的另一种方法。

orapki wallet create -wallet /path/to/wallet/wallet.p12 -auto_login [-pwd <password>

0
投票

您可以尝试以下语法

orapki wallet import_pkcs12 
 –wallet wallet_location [-pwd wallet_password] 
 -pkcs12file pkcs12_file_location [-pkcs12pwd pkcs12_file_password]
© www.soinside.com 2019 - 2024. All rights reserved.