This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread 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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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