I use java to code a CA module to create and sign the certificate. When I run my code, the error "Subject class type invalid." appeared, but in the destination folder I can get the two files: rooca.crt and rootca.pfx. The certificate contains the information I set. Maybe the code is result is right, but I still want to fix the error.
The details of the exception:
java.security.cert.CertificateException: Subject class type invalid.
at sun.security.x509.X509CertInfo.setSubject(Unknown Source)
at sun.security.x509.X509CertInfo.set(Unknown Source)
at com.koal.Test.createIssueCert(Test.java:124)
at com.koal.Test.main(Test.java:353)