Lost .jks on App Signing on Android


I started the procedure for App Signing my application. I followed the docs here

I built my application right after this and the build failed. So i tried to reset my build with new credentials and now it’s impossible to recover the good jks file (even if I kept all of them).

So, I contacted Google to reset my key and here their answer :

Here’s how to generate and register a new upload key:

  1. Follow the instructions in the Android Studio Help Center to generate a new key. It must be different from any previous keys. Alternatively, you can use the following command line to generate a new key:

keytool -genkeypair -alias upload -keyalg RSA -keysize 2048 -validity 9125 -keystore keystore.jks

This key must be a 2048 bit RSA key and have 25-year validity.

  1. Export the certificate for that key to PEM format:

keytool -export -rfc -alias upload -file upload_certificate.pem -keystore keystore.jks

  1. Reply to this email and attach the upload_certificate.pem file .

How to do this with Expo and make sure that all is good ?

Thank you in advance

you can extract public certificate from current keystore with expo fetch:android:upload-cert

1 Like

Thank you for your help.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.