sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Not applicable

Hello,

I have an API Proxy, which using its node modules is trying to call an URL with secured http connection.

But unfortunately, I am getting following error:

message":"sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Can anyone help me getting rid of this error ?

Thanks,

Meghdeep

1 1 1,728
1 REPLY 1

Dear @MEGHDEEP BASU,

This exception is thrown if the target server has a self-signed certificate or a certificate chain that does not exist in your truststore. So Apigee does not trust the certificate and hence fails to connect to the target server.

To address this issue, you need to obtain the target server's certificate and upload it into a truststore. Find more information about truststores here. And then configure the target endpoint or target server in Apigee for One-way SSL (use the truststore created) by referring to the instructions here.

Regards,

Amar