Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sign Android APK with a certificate that expires further in to the future

I have built an android app using phonegap build. I am now trying to get this on the play store but keep getting the following error

You uploaded an APK signed with a certificate that expires too soon. You need to sign your APK with a certificate that expires farther into the future

I have created the signing key with java jdk1.8.0 keytool and I have used this code

keytool.exe -genkey -v -keystore release.keystore -alias TicTacToe -keyalg RSA -keysize 2048 -validity 10000

I don't understand. As far as I can tell I am setting the date 10,000 days from now which should be plenty?

like image 549
EnduroDave Avatar asked Apr 24 '14 21:04

EnduroDave


1 Answers

Set expiration to be greater than 50 years.

-validity 20000
like image 97
Enki Avatar answered Sep 19 '22 18:09

Enki