Generate digital keys/certificates programmatically

  • Follow


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

0
Reply vimal.gupta (1) 5/31/2005 7:27:52 AM

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 


0
Reply Christian 6/14/2005 6:54:59 PM


1 Replies
953 Views

(page loaded in 0.03 seconds)

Similiar Articles:













7/23/2012 10:15:23 AM


Reply: