Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / June 2005

Tip: Looking for answers? Try searching our database.

Generate digital keys/certificates programmatically

Thread view: 
Vimal - 31 May 2005 08:27 GMT
I need to manage (create, store and import/export) the digital
Certificates in a web based application.
I know that Sun's keytool can be used to create digital certificates
X.509. But it is command line tool.
Is there any way we can use keytool to create certificates
programmatically using some API (except Runtime.exec())?
Also, there is an open source which allows certificate generation,
BouncyCastle (http://www.bouncycastle.org). Any experience with
BouncyCastle?
I also need to store certificates. I can use KeyStore. Any other
options are available?

Thanks in advance for your help and ideas,
Vimal Gupta
Christian Schlichtherle - 14 Jun 2005 19:54 GMT
Hi there,

unfortunately, there is no public API for the keytool which would allow you
to create a certificate.

In case you don't specifically need to generate X.509 certificates, but just
a digitally signed object, please consider the TrueLicense package at
http://truelicense.dev.java.net. The classes
de.schlichtherle.xml.GenericCertificate and
de.schlichtherle.license.LicenseNotary would solve your problem then.

My apologies that I can't comment on BouncyCastle.

Regards,
Christian


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.