Skip to main content

Reset Your Keystore Password and Export Keystore to PEM format

1. Send Google a request to reset your keystore.

Thanks for contacting Google Play Developer Support.
Now that we’ve verified your account, I’m happy to help you reset your upload key. The new upload key will be used to sign APKs that you upload to Play.
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

Do take note that the provided command is incomplete.

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

2. Create and EXPORT the certificate for that keystore to PEM format.

In order to do so, you need to be familiar with command prompt.
For those using a mac, the tutorial below would help:


The gist is to get to the location of the folder which stores the keystore.
To do that, you need to get a grasp of the following command.

1. -ls : to see the folder directory
2. -cd Desktop/FolderName :to enter the directory
3. -cd : to get back to default directory

Once inside the directory containing the keystore. Type the following command and fill in your password when prompted.

keytool -export -rfc -alias youraliasname -file upload_certificate.pem -keystore keystorename

Words in red have to be based on what you assign to your respective keystore.
Do take note that if your certificate.pem is unsuccessful, you will see an exception and the file size is 0 byte.
Some keystorename doesn't have an extension of .jks.
Those created from command prompt do have an extension of jks

Comments

Popular posts from this blog

Error when renaming java class nameAndroid Studio

Do you see these terms,"java.lang.ClassNotFoundException, DexPathList", somewhere along the whole chunk of error message, wherever you rename a file? Simple solution would be to clean build! But do make sure the following are rename accordingly too, 1. class name on Directory 2. class: public class MainActivity extends .... 3. Manifest: <activity android:name=".MainActivity"> 4. XML: tools:context=".MainActivity" https://www.facebook.com/Android-Noob-Reboot-1248769758470969/ https://stackoverflow.com/questions/40493946/refactoring-package-name-breaks-app-with-classnotfoundexception-due-to-not-findi

RecyclerView

Benefit of RecyclerView: 1. Standby the next element for display 2. Saves Viewholder scrolled offscreen. Viewholder does not  need to be created or have its view inflated; instead, the app just updates the view's contents to match the new item it was bound to. 3. Adapter use  RecyclerView.adapter.notifyItemChanged to update changed items by rebinding Main Objects 1. RecyclerView Object: Overall container for UI that you add to layout.   The  RecyclerView  creates only as many view holders as are needed to display the on-screen portion of the dynamic content, plus a few extra.  As the user scrolls through the list, the  RecyclerView  takes the off-screen views and rebinds them to the data which is scrolling onto the screen. 2. Adapter: manage Viewholder Object (create and bind to data, onBindViewHolder()   ) 3. Viewholder Object: view in the list. Display a single item with a view 4. LayoutManager: add Views to RecyclerView https://developer.android.com/guide/topic