Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error with keystore : Parse Generalized time, invalid format

I get the following error when I to 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 solution worked...

Did anyone ever experienced the same issue?

like image 316
Justin D. Avatar asked Sep 29 '13 03:09

Justin D.


1 Answers

You get this exception when you specified too big value for validity. Keytool does not do a great job on input validation when creating the keys and then it is not able to read the generated keystore. It is better to keep a backup from the keystore.

like image 184
kocka Avatar answered Sep 30 '22 18:09

kocka