Hello,
I am trying to use the Visa Developer Center Playground through proxy and get an error.
URL: https://sandbox.api.visa.com/vdp/helloworld
Auth Method: Mutual SSL
Proxy: Yes
Error: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Any suggestion?
Thank you!
Hi @geopr, Thank you for reaching out! One of our agents will get back to you as soon as possible. In the meantime, if any community member knows a solution, please feel free to reply to this thread.
Hi, i think the error is about the path to your certificates. what OS are you working on? and in which language you are testing? these details and any other related details will help people to suggest better solutions
Hello, I am using windows 11 and I am using the VDC playground
Hi again,
I'm using windows 10 and VDC playground. maybe the certificate files are corrupt. i tried renaming the certs and the error was different comparing to your error. test the certificates you are using as public and private keys. maybe you can open them with xca app in your system to check if they are ok.
I have created new project with new certificates, but still same error. I have also tried X-Pay-Token and still the same error
Hi @geopr,
To investigate the error, please provide the following information:
1. End Point
2. Request Header
3. Request Body
4. Response Header (include the x-correlation-id)
5. Response Body
You can find the x-correlation-id in the response header.
Hi @geopr,
If you're still experiencing an error, please share the information I requested of you.
1. End point: https://sandbox.api.visa.com/vdp/helloworld
2. Request Header: unknown
3. Request Body: empty
4. Response Header (include the x-correlation-id): empty
5. Response Body: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
i think reinstalling java (JRE or JDK) is another option. maybe it will help you