Two Laptop Bag*
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 Android Security Essentials Live Lessons this week in the Android 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: 41133
    
  45
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Help with generating self-signed certs in BC
 
Similar Threads
ssl with Tomcat
SSL HandShake
Do you encrypt password yourselves?
How to create self signed certificate