Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find expiration date of Android keystore

I made a keystore a while ago for my Android apps but I can't remember how long I set the validity for.

Is there a way to find out how long the keystore is good for?

like image 261
EmbMicro Avatar asked Feb 14 '12 03:02

EmbMicro


People also ask

What happens when keystore expires?

So, app developers will probably want to drop support for older versions about a year before their certificates expire. Then, for the remainder of the old certificate's lifetime, updates will be signed with both old and new certificates, and then only with the new certificate after that.

Where is the keystore file in Android?

The default location is /Users/<username>/. android/debug. keystore.


2 Answers

You can use the keytool from the jdk to get certificate info. A command like this should work

keytool -list -v -keystore keystore.jks -alias mydomain

Replace

'keystore.jks' with your keystore name
'mydomain' with your alias name
like image 136
blessanm86 Avatar answered Oct 01 '22 23:10

blessanm86


When you export a signed APK file from the ADT in Eclipse (assuming you are working in Eclipse), the Export Android Application dialog shows the keystore expiry date;

Export Android Application showing the expiry date of keystore

like image 27
Mudassir Avatar answered Oct 01 '22 21:10

Mudassir