This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Security and the fly likes Help with generating self-signed certs in BC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Help with generating self-signed certs in BC" Watch "Help with generating self-signed certs in BC" New topic
Author

Help with generating self-signed certs in BC

Robin Sharma
Ranch Hand

Joined: Aug 24, 2005
Posts: 76
Howdy!

I need to generate self-signed certificates programmatically with the BouncyCastle API. Can someone provide some sample code for this as i'm new to BC? I first need to create a root certificate/private key and then use that to sign other certificates, again created using BC.

Thanks.


DW
There is always a bug :-)
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41582
    
  54
Certificates are created using tools that come with the JDK. As long as the JRE is configured to use BC as one of its security providers, it should just work. Or what makes you think that certificates created with BC are somewhatsp ecial?


Ping & DNS - my free Android networking tools app
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Help with generating self-signed certs in BC