Upgraded to BouncyCastle 1.50. Fixed warnings. Created a new root X.509 certificate.