Can't find created keystore

Hi guys,

I’ve tried to set up my App for the Appmarket and created a keystore via the command window.

keytool -genkey -v -keystore pitt.keystore -alias pittalias -keyalg RSA -validity 999999

Everything worked fine, but now I’m not able to locate the created keystore. I’ve tried to search for it, but no result. Can anyone tell me where to find it?

Are you on a Mac or PC?

If you are on a Mac, it’s probably in the last folder your “Terminal” app was in.  You can use spotlight (the little magnifying glass at the top right) and enter pitt.keystore and when it comes up, click on the “Show in Finder” link.

If you’re on a PC, you should be able to search for it from the Start menu.

Hi Rob,

I work on PC. As I wrote above I already tried to search for it, but no result.

I searched for this problem at google as well but cannot find a solution.

I also tried different versions of the JDK but it’s always the same.

Did you look in the folder that contains keytool?

@JonPM

Of course that was the first place I looked at, as it is the normal saving folder for the keystore :wink:

It rather seems to me as if the keystore wasn’t even created (or directly deleted after creation), otherwise it has to be somewhere and should be findable when I search for “.keystore” or the name I gave it.

Are there any cases known where the creation process runs correctly but no keystore is created?

Can you try and make a new one, but explicitly specify where you want it to write it: 

keytool -genkey -v -keystore c:\pitt.keystore -alias pittalias -keyalg RSA -validity 999999

According to Oracle:

http://docs.oracle.com/javase/6/docs/technotes/tools/windows/keytool.html

The keystore should be written to your home directory.  Also it says the alias is limited to 8 characters (but longer ones just ignore the extra letters)

Hi Rob,

thanks for your reply. I found the solution right before I saw your post.

The Problem was, that the program tried to save the keystore in a read-only folder, but didn’t give me any errors.

Thank you guys :slight_smile:

Are you on a Mac or PC?

If you are on a Mac, it’s probably in the last folder your “Terminal” app was in.  You can use spotlight (the little magnifying glass at the top right) and enter pitt.keystore and when it comes up, click on the “Show in Finder” link.

If you’re on a PC, you should be able to search for it from the Start menu.

Hi Rob,

I work on PC. As I wrote above I already tried to search for it, but no result.

I searched for this problem at google as well but cannot find a solution.

I also tried different versions of the JDK but it’s always the same.

Did you look in the folder that contains keytool?

@JonPM

Of course that was the first place I looked at, as it is the normal saving folder for the keystore :wink:

It rather seems to me as if the keystore wasn’t even created (or directly deleted after creation), otherwise it has to be somewhere and should be findable when I search for “.keystore” or the name I gave it.

Are there any cases known where the creation process runs correctly but no keystore is created?

Can you try and make a new one, but explicitly specify where you want it to write it: 

keytool -genkey -v -keystore c:\pitt.keystore -alias pittalias -keyalg RSA -validity 999999

According to Oracle:

http://docs.oracle.com/javase/6/docs/technotes/tools/windows/keytool.html

The keystore should be written to your home directory.  Also it says the alias is limited to 8 characters (but longer ones just ignore the extra letters)

Hi Rob,

thanks for your reply. I found the solution right before I saw your post.

The Problem was, that the program tried to save the keystore in a read-only folder, but didn’t give me any errors.

Thank you guys :slight_smile: