I use java to encode the CA module to create and sign a certificate. When I run my code, the error "The theme class type is invalid." but in the destination folder I can get two files: rooca.crt and rootca.pfx . The certificate contains the information that I installed. The code may be correct, but I still want to fix the error.
Exception Details:
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)
Part of my code:
enter the code here
source share