Error with keystore: Parse Generalized time, wrong format

I get the following error when I use my keystore:

$ keytool -list -keystore instavert.keystore

  keytool error : java.security.cert.CertificateParsingException: java.io.IOException: Parse Generalized time, invalid format

I searched on Google and SO, but none of the solutions worked ...

Has anyone ever experienced the same problem?

+4
source share
1 answer

You get this exception if you specify too high a value for validity. Keytool does not do an excellent job of validating input when creating keys, and then it cannot read the generated keystore. It is better to keep a backup from the keystore.

+7
source

All Articles