![](/img/trans.png)
[英]How to generate the .jks file with the DocuSign generated Public key & private key
[英]How to combine cer and key to generate jks file
我不熟悉证书及其从一种形式到另一种形式的转换。 我也尝试探索,但发现难以解释确切的信息。 我得到了两个文件gtcloud.cer
(证书)和gtcloud.key
(私钥以BEGIN_PRIVATE_KEY
开头,以END_PRIVATE_KEY
)。
现在,我要合并这两个文件,以生成一个可以在我的Java应用程序中使用的JKS文件。
是否有基于GUI的软件,或者我们必须为此使用openssl?
本网站对此进行了解释。 我能够成功使用它。
摘要:使用以下两个命令。
openssl pkcs12 -export -in [path to certificate] -inkey [path to private key] -certfile [path to certificate ] -out testkeystore.p12
keytool -importkeystore -srckeystore testkeystore.p12 -srcstoretype pkcs12 -destkeystore wso2carbon.jks -deststoretype JKS
更新 :如果需要将证书转换为pem
格式,请使用以下命令:
openssl x509 -inform der -in [path to certificate ] -out myCert.pem
此外,这是有关现有格式的一些有用信息: 证书标准
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.