How can i get certificate from my app?

I want to update my app and i need to know my certification key from previously version. how can i get the certification key?

For Android or?

When you bundled you should have supplied a certificate and private key.

If you did not do this then you should delete the app, and follow the instructions for generating these files:

If you did do this and you lost your files then you’re out of luck. Delete your app from Google Play and then recreate it, and be more careful this time - back up your files.

4 Likes

Where sertificate and private key should be when i bundle the game?

They can be anywhere, you just need to select them when you bundle. You should store them in a safe place.

I understood that, but when the game is bundled i have 2 files .apk and .xml and 2 folders. Where exist this certification keeys?

You make these files in the command line. Are you on windows?

Get openssl for Windows here:

https://code.google.com/archive/p/openssl-for-windows/downloads

Download openssl package from link given above
Extract it anywhere on your drive (eg. c:\openssl)
Within openssl directory copy/paste or type (use cmd tool):

openssl genrsa -out key.pem 1024
openssl req -new -key key.pem -out request.pem
openssl x509 -req -days 9999 -in request.pem -signkey key.pem -out certificate.pem
openssl pkcs8 -topk8 -outform DER -in key.pem -inform PEM -out key.pk8 -nocrypt
3 Likes

But auto generated keys from Defold are saved somewhere?

And also when i put this file in Defold bundle window Defold give me error.

No, they are not saved anywhere. I’m not exactly sure how Defold handles it under the hood but you shouldn’t use the debug stuff for distribution ever.

What error? Did you enter both files?

2 Likes

Yes i entered both files.

Hello, where are pem files stored in windows? I generate them but I cant find it.

These are generated in active directory. Use cd to change the active directory / dir to list the active directory. If you type cd and then drag a folder into the command prompt you can change active directory to that folder.

3 Likes