Java: Invalid Keystore format Error

2020-02-06 10:51发布

问题:

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

回答1:

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.



回答2:

Do not include special characters in organization name and unit



回答3:

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



回答4:

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)



回答5:

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!



标签: java keystore