File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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: 41096
    
  44
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
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