Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
1
Question by bod · Jul 22, 2019 at 07:24 PM · android buildgoogle playkeystoresigning

keystore to PEM file

I am trying to upload a new version of a game I built with Unity, to Google Play. The old key password has been lost so I need to use a new signing key. I have contacted Google about this and they can only reset my signature if I send them a new PEM file.

I have tried several methods of getting from the Keystore file to a PEM with no success. The last attempt I submitted to Google Play was rejected for being too weak. I have also look into using Android Studio with no success. (the online information on doing this seems to be out of date)

How can I generate a '.pem' file from the '.keystore' file?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by bod · Jul 24, 2019 at 04:03 PM

I was able to solve this issue by using an open source application called KeyStore Explorer: https://keystore-explorer.org/

The app lets you open the '.ketstore' file generated via Unity. You can then manage the keys and export a PEM certificate.

Note that the Unity default key pair is only 1024 bit. You need to create a new key pair at 2048 bit for Google Play when updating your public key.

Note that this solution does not require Command Line coding.

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image sohail11330 · Aug 02, 2019 at 11:14 PM 0
Share

i just open my keystore in keystore explorer and export a pem file and uploaded to play store but play store again rejected.any help?

avatar image bod sohail11330 · Aug 03, 2019 at 01:06 AM 0
Share

It has to be a 2048 bit key The default for Unity is 1024 bit... I had to create a new 2048 bit key pair with keystore explorer. Hope that helps...

avatar image sohail11330 bod · Aug 03, 2019 at 01:43 AM 0
Share

I am uploading android app bundle for my existing app on play store. when i uploaded the android app bundle file, play store says it has to be signed by Google and give me three options. 1.export the key from android studio 2.export the key from the java keystore. i go for 2nd and download the pepk file and generate the .pem file using the fu* command prompt. but when i upload it to play store, I get the error. so which file should be in 2048 bit, $$anonymous$$eystore or .pem file.? i am talking about existing app not new apps.Really need help

Show more comments
avatar image LorenzoValente · Nov 10, 2020 at 08:46 AM 0
Share

Just to let you know: keystores generated through Unity 2020 with default settings seems to have a 2048bit RSA key and 50 years of validity, so it should be ok for the PE$$anonymous$$ file

avatar image
0

Answer by Bunny83 · Jul 23, 2019 at 02:16 AM

Not a Unity related question. The keystore is part of java / android. 10 seconds google search gave me this:

converting-a-java-keystore-into-pem-format

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by aumentarte · Nov 25, 2019 at 11:57 AM

Thanks a lot. This did work for me. Just generate the new key store file, open it with KeyStore explorer, double click on it once you have it in the program window and click export. I generated the keystore file with unity 2019.2.6f1 and it was already 2048 bit RSA key. I didn't have to create a new key par.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

185 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Android Publishing Settings: where is the Key / Alias stored (not the keystore) 0 Answers

Signing android APK production? 1 Answer

Application Update Incompatible 0 Answers

Can't build on Android when signed 2 Answers

Can't install an android Unity app on Android 6.0 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges