Here is a demo to generate a self signed x509 certificate in Java

X509 Certificate generator in Java

X509Cert.java
Asn1Object.java

Download ZIP

Back