Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problems with keytool and SSL

843811Jun 7 2004 — edited Jan 28 2009
Hi! 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 ?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 25 2009
Added on Jun 7 2004
6 comments
209 views