title: Self signed X509 Certificate with Bouncy Castle in Java
body: <p>I need to create a self signed X509 Certificate with Bouncy Castle in Java, but every class I try to include is deprecated. 
  How can I solve this? Is there some other class to include? 
  Thanks</p>