Certificate has unsupported critical extension exception
843811Nov 3 2006 — edited Nov 6 2006Hello
I am trying to validate a certificate with the following code, but i always get the exception: "java.security.cert.CertPathValidatorException: Certificate has unsupported critical extension"
Security.addProvider(new BouncyCastleProvider());
CertificateFactory cf = CertificateFactory.getInstance("X.509", "BC");
CertPath cp = cf.generateCertPath( this.CertChain);
PKIXParameters params = new PKIXParameters( this.trustedAnchors );
params.setExplicitPolicyRequired( false );
params.setDate(new Date());
CertPathValidator cpv = CertPathValidator.getInstance("PKIX", "BC");
PKIXCertPathValidatorResult result = null;
result = (PKIXCertPathValidatorResult) cpv.validate( cp, params );
Does any body could help me solving the problem ?
Tks