Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Creating X.509 certificate programming without BouncyCastle?

cowwoc-JavaNetNov 3 2006 — edited Sep 2 2008
.Hi,

I'd like to create a X.509 certificate. Unfortunately, java.security.cert.CertificateFactory.generateCertificate() takes in a DER-encoded certificate and there is seemingly no way to generate this without using BouncyCastle. I'd rather not use BouncyCastle because of the size of the JAR as well as the fact I'd like to avoid using 3rd party libraries if I can do so.

Is this possible using the standard JRE or am I forced to use BounceCastle? Keytool must do it somehow.

Thanks,
Gili
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 30 2008
Added on Nov 3 2006
5 comments
1,165 views