Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help with generating self-signed certs in BC

 
Robin Sharma
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic