File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Security and the fly likes Creating CA using keytool Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Creating CA using keytool" Watch "Creating CA using keytool" New topic
Author

Creating CA using keytool

Balu Sadhasivam
Ranch Hand

Joined: Jan 01, 2009
Posts: 874


Hi ,

how to create our own CA using keytool utility ? i find some articles using openssl.. please point some link if any. Thanks.
Carey Evans
Ranch Hand

Joined: May 27, 2008
Posts: 225

You cannot use the current keytool as a CA. The version in Java 7 will probably support it, and for now you can write code using the X509V3CertificateGenerator from Bouncy Castle if you know what you’re doing.
Balu Sadhasivam
Ranch Hand

Joined: Jan 01, 2009
Posts: 874



Thanks for the information Carey. I will check the link later as i cannot access the link now. Basically i m trying to do this without any Java API.
Pankaj Tiwari
Ranch Hand

Joined: Sep 11, 2005
Posts: 55
if you have not got any solution then you may use following steps. I got it from some site and used in a year back, so don't remember the reference
Balu Sadhasivam
Ranch Hand

Joined: Jan 01, 2009
Posts: 874


Thanks Pankaj .
Can i create CA in a machine (installed with openssl) and use the CA to sign the certificate in another machine ?
Pankaj Tiwari
Ranch Hand

Joined: Sep 11, 2005
Posts: 55
Yes, i don't think that this is not possible. But one thing you should keep in mind..this is just a dummy and self signed CA
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Creating CA using keytool