Java: Invalid Keystore format Error

2020-02-06 10:22发布

Does anyone know how to solve this java error?

java.io.IOException: Invalid keystore format

I get it when I try and access the certificate store from the Java option in control panels. It's stopping me from loading applets that require elevated privileges.

Error Image

标签: java keystore
5条回答
▲ chillily
2楼-- · 2020-02-06 10:45

for me it meant that my key file I was trying to import was invalid (it was actually a 404 page not a valid key)

查看更多
劫难
3楼-- · 2020-02-06 10:48

For you guys who can't find the 'Documents and Settings' (whatever reason there may be) here is another path where the trusted.certs can be found:

C:\Users\<username>\AppData\LocalLow\Sun\Java\Deployment\security

Hope this helps!

查看更多
Animai°情兽
4楼-- · 2020-02-06 10:50

Do not include special characters in organization name and unit

查看更多
一夜七次
5楼-- · 2020-02-06 10:55

I was able to reproduce the error by mangling the trusted.certs file at directory

C:\Documents and Settings\CDay\Application Data\Sun\Java\Deployment\security.

Deleting the file fixed the problem.

查看更多
\"骚年 ilove
6楼-- · 2020-02-06 10:56

Seems to be a missing certificate or an invalid format. Did you already generate a certificate with keytool?

查看更多
登录 后发表回答