title: Generating X509 Certificate using Bouncy Castle Java
body: <p>I am looking for an example or tutorial to generate X509 Certificates using BC in Java.</p>
  
  <p>A lot of example are having/using deprecated API. I gave a look at BC, but it doesn't show which class does what or no proper documentation/example.</p>
  
  <p>Please If any one you are having idea about it, please point me to a tutorial where I can use BC to generate X509 Certificates. [Generation and writing the public and private keys to files]</p>