Android upload_certificate.PEM file?

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
j9v6
Posts: 99
Joined: Tue Aug 06, 2019 9:27 am
Contact:

Android upload_certificate.PEM file?

Post by j9v6 » Wed Nov 13, 2024 12:28 pm

Well, would you believe it, I've locked my keystore passwords for one of my apps in an old Notes file on iOS and forgotten the password to unlock it - it's quite an old note so it predates Apples "unlock it with your face" technology so I'm kinda stuffed. I know, I know - it was a stupid thing to do and I've resorted to keeping them in a little black book again.

Anyway here's the problem. I've created a new App Signing key (as per the livecode lesson here https://lessons.livecode.com/m/4069/l/3 ... stribution and opted to create the release_keystore. Subsequently I can build the app just fine. I can also drop the .apk onto my android devices and test it all out there which is cool. My problem is that I can't upload the new release to the Google Play store because the App Signing key is different to the one used to upload the app last time.

Google fortunately provide a way to change the App Signing key via a link on the App Signing section for the app in the google play console. The problem I have is that I'm not sure what I'm supposed to enter in place of the bold text in their instructions. Is the upload-keystore.jks file the release_keystore.keystore created in the lesson? Also, what do I specify in place of upload and upload_certificate.pem?

Below is the Request Upload Key Reset screen and instructions that I'm wondering how to proceed with
Screenshot 2024-11-13 at 11.18.16.png
Google tell me I've got limited time to upload a new version because the old one was built with old Android stuff and will be retired from the Play Store within the next couple of weeks. :roll:

Has anyone else been through this process before who would be happy to fill in the blanks and advise?

Cheers,
Al.

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Android upload_certificate.PEM file?

Post by Klaus » Wed Nov 13, 2024 1:51 pm

Hi Al,

1. create a selfsinging key with Android Studio, and name it "whatever_you_like.jks" (suffix is important!) see here:
https://lessons.livecode.com/m/4069/l/3 ... ndroid-app
Scroll down to the "Android Studio" part.

2. Use the terminal and enter the command below, replace the strings in BOLD:
upload_keystore.jks = the name of the file created in 1.
upload = the alias you entered for the keystore file in 1.
upload_certificate.pem = the name of the PEM file you need to upload to Google, name it whatever you like but keep the suffix.

3. Then you need to wait one or more days until Google approved your upload.

4. Now you can use the keystore file created in 1. to sign you Android app in LC.

Best

Klaus

j9v6
Posts: 99
Joined: Tue Aug 06, 2019 9:27 am
Contact:

Re: Android upload_certificate.PEM file?

Post by j9v6 » Wed Nov 13, 2024 2:06 pm

Hi Klaus,

Thanks for the quick reply and explaining what's what. I've used the filenames and key names suggested in the lesson and issued the following command
keytool -export -rfc -keystore release_keystore.keystore -alias key0 -file upload_certificate.pem
Doing this has generated a 1k upload_certificate.pem file so presumably it's all worked ok.

Going to upload it to Google and see how I get on in 24 hrs.

Cheers,
Al.

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Android upload_certificate.PEM file?

Post by Klaus » Wed Nov 13, 2024 3:10 pm

You're welcome!
I had to jump through this hoops a couple of months ago, so I remembered all these steps. :)

Post Reply