PKIX path building failed while using Visa Developer Center Playground

geopr
New Contributor

PKIX path building failed while using Visa Developer Center Playground

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!

10 REPLIES 10
jenn_kh
Community Moderator

Re: PKIX path building failed while using Visa Developer Center Playground

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.

vrm
Helper

Re: PKIX path building failed while using Visa Developer Center Playground

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

nobody is perfect
geopr
New Contributor

Re: PKIX path building failed while using Visa Developer Center Playground

Hello, I am using windows 11 and I am using the VDC playground

vrm
Helper

Re: PKIX path building failed while using Visa Developer Center 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.

 

nobody is perfect
geopr
New Contributor

Re: PKIX path building failed while using Visa Developer Center Playground

I have created new project with new certificates, but still same error. I have also tried X-Pay-Token and still the same error 

API_Managers
Visa Developer Support Specialist

Re: PKIX path building failed while using Visa Developer Center Playground

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.

 




Thanks,

Tee



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

API_Managers
Visa Developer Support Specialist

Re: PKIX path building failed while using Visa Developer Center Playground

Hi @geopr,

 

If you're still experiencing an error, please share the information I requested of you. 




Thanks,

Tee



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

geopr
New Contributor

Re: PKIX path building failed while using Visa Developer Center Playground

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

vrm
Helper

Re: PKIX path building failed while using Visa Developer Center Playground

i think reinstalling java (JRE or JDK) is another option. maybe it will help you

nobody is perfect