It's not a secret anymore!*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 42355
    
  64
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
 
Consider Paul's rocket mass heater.
 
subject: Help with generating self-signed certs in BC