p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning Cryptography with Java (http://p2p.wrox.com/forumdisplay.php?f=187)
-   -   Generating X509v(1/3) certificates in java (bouncy castle) (http://p2p.wrox.com/showthread.php?t=95184)

Sebi November 2nd, 2015 04:45 PM

Generating X509v(1/3) certificates in java (bouncy castle)
 
I am trying to use the updated class of X509V1CertificateGenerator, Class X509v1CertificateBuilder. The documentation for the first class can be found here and for the second one (the one I intend to use), here.

Why is there no org.bouncycastle.cert.* package as suggested in the documentation? I am using maven to retrieve the bouncy castle jars:

Code:

<dependency>
    <groupId>org.bouncycastle</groupId>
    <artifactId>bcprov-jdk15on</artifactId>
    <version>1.53</version>
</dependency>


dgh November 2nd, 2015 05:19 PM

You need to use the bcpkix-jdk15on jar as well. It has the certificate generation classes in it.

Regards,

David

Sebi November 2nd, 2015 06:08 PM

Quote:

Originally Posted by dgh (Post 302689)
You need to use the bcpkix-jdk15on jar as well. It has the certificate generation classes in it.

Regards,

David

Thanks. That did the trick.


All times are GMT -4. The time now is 02:23 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.