Path does not chain with any of the trust anchor

Hi,

I got the exception when using

CertPathValidator cpv = CertPathValidator.getInstance("PKIX");

PKIXCertPathValidatorResult cpv_result =

(PKIXCertPathValidatorResult) cpv.validate(cp, params);

java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors

at sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(PKIXCertPathValidator.java:195)

at java.security.cert.CertPathValidator.validate(CertPathValidator.java:206)

...

I am using a valid root certificate and valid user certificate from verisign.

Any idea?

Thanks.

[648 byte] By [kbia] at [2007-11-27 7:44:07]
# 1
Never mind. I got the answer myself.
kbia at 2007-7-12 19:24:45 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 2
Don't tell us, make sure you keep it a secret. And keep asking here for help. This forum is just for you only.
ejpa at 2007-7-12 19:24:45 > top of Java-index,Security,Other Security APIs, Tools, and Issues...