I'm reading about using the keytool
command to generate a certificate from the oracle guide. The part I don’t understand is it says after running the command keytool -genkey ...
, it creates a public/private key. Can someone tell me explicitly what and where the public/private keys are? The only part I understand is after running the command, it creates an entry in the keystore…
Asked
Active
Viewed 266 times
0

user207421
- 305,947
- 44
- 307
- 483

Glide
- 20,235
- 26
- 86
- 135
-
Yes, it creates an entry in the keystore containing the public and private keys. – user207421 Jul 21 '14 at 05:18
-
@EJP I know I can get the public key by doing `-exportcert`. But what is the private key and how do I view it? – Glide Jul 21 '14 at 05:59
-
It's in the KeyStore. You can view it with keytool -list -v. – user207421 Jul 21 '14 at 06:32
-
@EJP I believe you can only view the public cert with keytool -list -v. There's no way to view the private key except by programatically. – Glide Jul 29 '14 at 21:07