keystore

Hello,

I'm new to Java Keytool and I need to know how to display the value of a key that already stored in the keystore.

I tried the following:

>keytool -v -list -keystore keystore.bin -storetype JCEKS -

storepass password -alias mykey

The result I got is Alias Name, Creation date and Entry type then astricks *****.

My question is how to display the actual key of the alias 'mykey'?

[433 byte] By [zain_shuka] at [2007-10-3 2:42:36]
# 1

To the best of my knowledge, no reasonably secure "production" product - including keytool - will show you a private key. You will have to write the code yourself and print the bytes in hex or Base64 encoding, if you want to do that.

As an aside, why would you want to display the private key? Wouldn't it be sufficient to just use it for crypto operations?

arshad.noora at 2007-7-14 20:30:52 > top of Java-index,Security,Cryptography...