Tuesday, June 18, 2019

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

SIGN ANDROID APK WITH A CERTIFICATE THAT EXPIRES FURTHER INTO THE FUTURE


If you come from the Windows app/application development world it is natural to assume that you want to use a purchased code signing certificate.
That is possible but when you or your client attempts to submit the application to the google play store it will fail with the 'APK signed with a certificate that expires too soon' error. That is because the max validity of most purchased certificates is around 2/3 years.
The solution is to just generate your own certificate as explained by others. I picked a validity of 100 years and it worked just fine. I am pretty sure I won't be working on this app in 100 years.
The disconnect is because the certificates are used in a different way and for a different purpose. Rather than identifying and naming the developer, the self-generated certificate is used to ensure that two application versions came from the same but unnamed source.

No comments:

Post a Comment