Pure Java x509 certificate generation for TLS