Symptoms
- Unable to open keystore in Unity 3D
- Error in console: Unable to list keys in the keystore. Please make sure the location and password of the keystore is correct …
- Error: Unable to read [keystore location]
- Error: Invalid keystore format
- You used the Java keytool to make your keystore and you know the keystore is fine!
Solution
The keystore is likely in the wrong format. It is probably in PKCS12 format if you created it with the Java Keytool via command line. The keystore needs to be converted to JKS format, which Unity is expecting. (This has nothing to do with the file extension and everything to do with the binary data structure.) You can easily convert from one type to another using a program like KeyStore Explorer (this is not an endorsement—evaluate your own risk). You can also convert it using command line but it is significantly more difficult. Convert the keystore file to JKS format and try to read it with Unity again.
Consider these services:
Is your ISP watching everything you do? Encrypt your internet traffic and more. Click here to learn more about what NordVPN can do for you.Encypt your passwords and sync them across devices. Password sharing solutions for family and buisness with NordPass.
Please note that in addition to advocating for these services I trust, I also earn commission through an affiliate program with Nord Security.
Thank you. I completely forgot about the type of keys and suffered for a couple of hours. Your article is just right. Saved me =)