导致keytool错误的原因是“无法解密安全内容条目”? [英] What causes keytool error "Failed to decrypt safe contents entry"?

查看:2114
本文介绍了导致keytool错误的原因是“无法解密安全内容条目”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用以下命令将标准PKCS#12(.p12)密钥库转换为Java JKS密钥库:

I am trying to convert a standard PKCS #12 (.p12) key store into a Java JKS key store with this command:

keytool -importkeystore -srckeystore keystore.p12 -srcstoretype PKCS12 -deststoretype JKS -destkeystore keystore.jks

失败的是:

keytool error: java.io.IOException: failed to decrypt safe contents entry: javax.crypto.BadPaddingException: Given final block not properly padded

你知道如何解决这个问题吗?

Do you have any idea how to solve this problem?

推荐答案

pkcs12密钥库确实已损坏。

The pkcs12 keystore was corrupt indeed.

这篇关于导致keytool错误的原因是“无法解密安全内容条目”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆