Generating X.509 Certificate using Bouncy Castle Java API
I am trying to generate a X.509 Certificate using Bouncy Castle Java API. I found sample code at: http://www.bouncycastle.org/wiki/display/JA1/X.509+Public+Key+Certificate+and+Certification+Request+Generation However, after compile the below codes, JVM shows an error message as shown below Could not find the main class: org.bouncycastle.util.AllTests. Program will exit. Note that org.bouncycastle.util.AllTests is inserted into the Java build path. How can I fix my code to work properly? import java.math.BigInteger; import java.util.Date; import org.bouncycastle.asn1.ASN1Object; import org