PKCS12 到 JKS 转换失败

2024-03-11

我正在尝试使用以下命令将 PKCS12 格式文件转换为 JKS 密钥库:

keytool -v -importkeystore -trustcacerts -srckeystore cert.p12 -srcstoretype PKCS12 -destkeystore md_keystore.jks -deststoretype JKS

这将返回以下消息:

0 entries successfully imported, 0 entries failed or cancelled

我使用 openSSL 查看了 cert.p12 文件,它似乎很好 - 它包含完整的证书链和私钥。也没有返回堆栈跟踪,并且生成的密钥库文件也是空的。

任何人都知道为什么密钥库无法导入看似有效的证书,但不产生任何堆栈跟踪等?


我最近使用此命令行导入了一些 PKCS12 证书:

keytool -importkeystore -srckeystore cert.p12 -srcstoretype PKCS12 -srcstorepass certificatePassword -keystore keystore_file_name.jks -storepass keystore_password
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

PKCS12 到 JKS 转换失败 的相关文章

随机推荐