Problems with keytool and SSL
843811Jun 7 2004 — edited Jan 28 2009Hi! I recently have downloaded some sources from java almanac about creating an ssl client / server socket.
My new source that makes use of the lines shown in their examples compile well, but I get problems with running the keytool command in their example.
In the text it is said:
"For testing purposes, you can create a keystore with a self-signed certificate, using the keytool command:
> keytool -keystore mySrvKeystore -keypasswd 123456 -genkey -keyalg RSA -alias mycert"
I tried this command but it simply put out the general syntax of keytool (not any error or something else).
So what do I have to do, to enable communication between a SSL Client/Server Socket ?