4

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

5 Answers 5

4

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.

Sign up to request clarification or add additional context in comments.

2 Comments

What should I do if I don't want to delete this file?
To delete keystore follow these steps. stackoverflow.com/a/6036134/7284578
2

Do not include special characters in organization name and unit

Comments

0

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

Comments

0

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)

Comments

-1

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!

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.