Hey, Today in this article I’ll show you how to Generate pem file from your Keystore. This trick is too easy from other tricks you try. You just need to install a software in your computer and all done.

So without wasting any time let’s get a start.

Before we go, I want to tell you something, If you like to read more article on android studio basic problems, Please click here to read.

You also like this article.

  1. plugin with id ‘com.android.application’ not found

After some days ago I lost my previous Upload key (Keystore). Now I need to reset my key. I contact Google Play Developers, and finally, I receive an email from Google Team. They ask me to generate a new Keystore and Export the certificate for that key to PEM format.

Now I don’t know how to create a .PEM file formate from a Keystore or Private key. I waste my 3 to 4 days on searching for this problem on the internet. But there is no information on the internet related to this topic.

Today I’ll solve this problem and also share it with you. So if you like and if this article helps you, then please don’t forget to share this with your friends.

Step 1. If you lost your Keystore, first of all, contact with Google play team, Click here to fill this form if you forget or lost your key.

Wait for 1 to 2 days, and you got this Email.


Hi Developer,

Thanks for contacting Google Play Developer Support.

Now that we’ve verified your account, I’m happy to help you reset the upload key for your app, com.tp.wpstatussaver. The new upload key will be used to sign APKs that you upload to Play.

We recommend that you adjust your planning to include a buffer period of 48 hours from when the upload key has been reset before you can use the new upload key. You can learn more about using app signing by Google Play here.

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.

I look forward to your response. Please let me know if you have any questions in the meantime. Regards, Developer name.
Google Play Developer Support


After the email, you need to submit an Upload Certificate (.PEM) file. Now let’s try to generate a upload_certificate.pem file.

How to Generate Upload_cerificate.pem file?

  1. Create a new Keystore for your App.

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

  2. Download the Keystore Explorer from the internet.

    A download link is available at the end of this article. Or click here

  3. Install Keystore Explorer and Open it in your Computer.

  4. Press the CTR+O button to upload your new Keystore to this software.

    You can also click on the file (from the menu) and then upload the Keystore button.

  5. After that, you need to put your Keystore password.

  6. Double click on Keystore.

  7. Click on PEM button.

    A new list appears. Click on the PEM button to generate .pem file from your Keystore.

  8. Select the path, where you want to save your upload_certificate.pem file.

  9. Reply to the Google Play Team’s email, Don’t forget to attach this file.

Wait for one to two days and you got this Email.


Hi Developer,
Thanks for providing the PEM file.
Good news – I was able to register your new upload key for your app(com.tp.wpstatussaver). The new key will be usable from 2020-09-24 01:10:22 UTC. You can double-check at the app signing page in the Play console.
Please make sure to update your key stores in the following locations:

  • Local machine
  • Locked on-site server (varying ACLs)
  • Cloud machine (varying ACLs)
  • Dedicated secrets management services
  • (git) repos

Thanks for your patience during this process, and please let me know if you have any other questions.


Now you are successfully reset your Keystore. You can update your app in two days. Also time is mention in your email.

shares