This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Security and the fly likes Generating public and private keys Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Generating public and private keys" Watch "Generating public and private keys" New topic
Author

Generating public and private keys

Jaggi Kunal
Ranch Hand

Joined: Jan 21, 2003
Posts: 45
I am using Tomcat 4.1.12.
I want to use HTTPS Client-CERT authentication , I have made app. changes to the web.xml file.
How do I generate public and private keys for alias “tomcat”. Is the following command correct.
<JAVA_HOME>\keytool –genkey –alias tomcat –keyalg RSA
OR it should be :
<CATALINA_HOME>\keytool –genkey –alias tomcat –keyalg RSA

Regards,
Kunal Jaggi
SCJP2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Generating public and private keys