English 中文(简体)
是什么造成骨质错误的“不去加密安全内容输入”?
原标题:What causes keytool error "Failed to decrypt safe contents entry"?

我正试图将标准PK #12(p12)关键仓库改装成 JavaJKS的主要仓库,并接受这一指挥:

<条码>钥匙tool - 进口钥匙仓库 - 铺设钥匙。 JKS -destkeystore keystore.jks

它未能做到:

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

你们是否有办法解决这一问题?

最佳回答

木板12座钥匙确实腐败。

问题回答

有时,这种错误是用错误的密码对P12钥匙的。

我以前从未试图这样做,但我确实在以下网址找到指示:http://support.comodo.com/index.php?_m=knowledgebase&_aview=article&kbarticleid=1283”rel=“nofollow noreferer”>here。

https://stackoverflow.com/questions/9236939/java-keytool- Respect-final-block-not-properly-pplus” 提出类似问题。

<EDIT (根据评论)

此处是相关参考资料的全部内容:

P/P12至JKS (Java KeyStore)

< Question: 我如何将证书从IIS/P(p12档案)移至JKS(Java KeyStore)?

<>Answer: keytool - 进口钥匙仓库 - rc子店 P-12_FILE_NAME - 工厂店类pkcs12 -srcstorepass Peno_P12_FILE - 索马里 - key - 寄生虫——寄生机——PASSWORD——

<>说明: 为了找到这些rc子,列出Pania/P12号档案的内容:

关键工具 -v -list -sshoptype pkcs12 - key店 P_P12_FILE > FILENAME lfon 这把指挥结果写到档案中,编号为FILENAME。 LEXT。

I had the same problem i entered the password manually and problem got resolved

在我试图从科索沃统计局出口像牛肉一样的cer果时,我有同样的问题。 该公司在关键托醇指挥和安放区被排除在外,在运行时间给目的地储存密码。

keytool -importkeystore -srckeystore Keystore.jks -destkeystore dv163.pfx -srcstoretype JKS -deststoretype PKCS12 -srcalias alias1-destalias alias1

进入目的地关键仓库密码:

重新插入新的密码:

进入关键仓库密码:

I had the same issue today(BadPaddingException). It seems keytool had a problem with certain characters in the password. I solved it by adding double-quotes around the password.

关键工具 - 进口钥匙仓库 - rc子店 - 工厂店类pkcs12 -srcstorepass "P_P12_FILE” -srcalias SOURCE - key - 寄生虫——寄生虫“PASSWORD”—— ALIAS_NAME

I did this command (opposite to yours) to export a private key to PKCS12 from a JKS:

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

如果我脱离似乎多余的“北极圈”类型JKS,那么,产生的不认同性文件第12页给我留下了同样的错误,当时我试图将细节列入钥匙tool,尽管上述指挥部接受了密码,并产生了一份似乎正确的文件!

For your issue, perhaps you did something similar when generating keystore.p12.

My issue was somewhat unique. When I tested locally in my dev environment, it seemed to work fine. However, when i deployed to our live environments, it was giving the root error javax.crypto.BadPaddingException:

经过一些偷窃之后,由于 j子在用我的cker器形象来抹去。 在我看来,一些支尔子(例如,大约1.8套)是相容的。 在进行了一些测试之后,我发现了一个与它合作的支架(11.021)。 如果你尝试了所有选择,而没有工作,那么就尝试了这一选择,如果其支离破碎,就会进行检查。

从我的边,我忘记在你打字口时检查语言:

simply type the correct password on the build signed APK wizard form. ( it worked with me on android studio 4.2 canary 15++)

As I came to find out, when you change app on said wizard, spite the password remains, somehow it does not sign correctly, so you need to clear the password and type it again.

In my case, it was because of the password contains some special characters at the start or at the end (it s correct but not supported), just make sure you use normal words with numbers if it didn t work for your upload key

Cause: failed to decrypt safe contents entry: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.

如果你提出密码,确保文件ASCII中载有字句,而不包括信件、编号和符号以外的果园,那么我几乎就失去了思想。 UTF-8特别果园可能破裂。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签