aspose file tools*
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 Soft Skills this week in the Jobs Discussion 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: 42914
    
  68
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help with generating self-signed certs in BC