I can't compile the v1, v3 and CertificateFactoryExample:
Following Exception:
Code:
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
The method setIssuerDN(X509Name) in the type X509V3CertificateGenerator is not applicable for the arguments (X500Principal)
The method setSubjectDN(X509Name) in the type X509V3CertificateGenerator is not applicable for the arguments (X500Principal)
at chapter6.X509V3CreateExample.generateV3Certificate(X509V3CreateExample.java:32)
at chapter6.X509V3CreateExample.main(X509V3CreateExample.java:58)
A possible quick fix is to change the
to
Code:
setIssuerUniqueID()
but it's also not compileable.
I'm using Eclipse SDK v3.5.2 Galileo