How do I get a private key and certificate for a release?

How do I get the right format for those also?

1 Like

Have you read our manual on Android development? https://www.defold.com/manuals/android/

And there’s one for iOS development as well: https://www.defold.com/manuals/ios/

2 Likes

The certificates downloaded from the play console can’t be used why is this?

Downloaded from the play console? You mean the Google Play Developer console? I guess that’s a .keystore file? You can extract key and cert from it and use that when signing.

How do I do that?

The user @universityofgames posted a great guide on the forums how to do just that:

I bet there are a bunch of other guides available online as well. :slight_smile:

1 Like

The Google certificate is a dem file

A dem file? Never heard of those. What are they used for? Last time I did Android development you used a .keystore file when signing.

2 Likes

If you follow the steps in the manual that’s all you need. You can let Google manage the release signing, and then you use your key for uploading only. Then you can get new upload if you ever lose yours or they get compromised, but you should be careful to backup and never share yours.

Specifically

$ openssl genrsa -out key.pem 2048
$ 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

And then don’t lose your keys.

5 Likes

Thanks

1 Like

What does unable to parse certificate mean?

It means something you are trying to use the certificate with thinks it is malformed. What are you trying to do? Try to follow the process again fully and carefully and see if it still happens.

1 Like