This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Keytool Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Keytool" Watch "Keytool" New topic
Author

Keytool

Adam Teg
Ranch Hand

Joined: Jul 10, 2007
Posts: 58
I know you can run: keytool -import -cacerts -alias in cmd, can you run it in a java program to create keystore and how? Thanks
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19651
    
  18

Look at the java.security package. It has a class called KeyStore.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Keytool
 
Similar Threads
view public key of the keystore
What is Certificate and how to configure it in cacerts file...
Using SSL
Keytool
modify keystore