Java: Invalid Keystore format Error

后端 未结 5 1517
悲&欢浪女
悲&欢浪女 2020-12-11 07:32

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

相关标签:
5条回答
  • 2020-12-11 08:04

    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)

    0 讨论(0)
  • 2020-12-11 08:10

    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!

    0 讨论(0)
  • 2020-12-11 08:15

    Do not include special characters in organization name and unit

    0 讨论(0)
  • 2020-12-11 08:16

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

    0 讨论(0)
  • 2020-12-11 08:24

    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.

    0 讨论(0)
提交回复
热议问题