I'm trying to hit an API from AWS EC2 and I'm getting Exception

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException

But when I hit the same API on browser it works fine without giving any kind of warning.

API is:

https://idgenvip.qa.ch3.s.com/IDGen/services/id/generate?idType=GIFT_REGISTRY_ID

I asked one of the guy in infra, he told me it's not certificate related issue.

I have tried putting all the certs present in the server in which this API is working fine to my AWS EC2 instance, but still getting the same error.

EDIT: I've tried to ping on the idgenvip.qa.ch3.s.com and it's getting 0% packet loss.

Please help to resolve this issue.. Help of any kind would be appreciated.

0

There are 0 best solutions below