Find my lost Android app signing key from IntelliJ

Over time I seemed to have lost my keystore password, that I needed to sign some Android app. Still had the keystore file though. IntelliJ also had the keystore password stored. So how do I get the password from IntelliJ?

There is a handy utility on github for this https://github.com/corneliudascalu/intellij-decrypt. If you have the master password for IntelliJ, it decrypts all passwords stored in IntelliJ. Using this I was able to recover the signing password for my keystore.

This requires the security.xml file from IntelliJ where the passwords are stored. Where is this stored on OSX? Googleing for it, this seems to vary. None of the given options seem to make an sense. So we try “find / -type f -name security.xml”. This finds it in “/Users/myname/Library/Preferences/IdeaIC14/options/security.xml”. That’s how I finally got the keystore password.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s