Connecting VISA API using Two-way SSL is not working

Solved! Go to solution
JB1
Helper

Connecting VISA API using Two-way SSL is not working

HI,

I am a developer in New Zealand, looking to integrate VISA API into one of the mobile applications.

 

For that, I am trying to access the "Helloworld" endpoint to make sure connectivity from my development environment to sandbox is working with the required certificates and credentials before I start accessing any VISA APIs.

I am trying two different ways 

Create a project by using default CSR provided by VISA

When I select the option to use VISA provided API, I can able to download the key and once the project is created I can see credentials and certificate.

I have used those credentials and certificates to try to access the HelloWorld endpoint like below, returns error Expected input credential was not present. I am not sure what I am doing wrong here. 

CORRELATION-ID:  1642744861_794_616235343_l55c013_VDP_WS

 

Create a project using My own CSR

1. I am created CSR I have used ST: New Zeland  and upload 
I have received Status Code:400 Bad Request
X-CORRELATION-ID: 2_1642745902_898_74_l55p058m_VDP_ARM

and flowing  the error 

csridentifier ST (State or Province Name) errorMsg value not valid.

 

Could you share more details what are those acceptable values for New Zealand ( FYI I have followed this https://developer.visa.com/pages/working-with-visa-apis/two-way-ssl#configuring_twoway_ssl_keystore_...)
 2.  I am created CSR I have used ST: Wellington and upload 
I have received Status Code: 500 Internal Server Error
X-CORRELATION-ID: 2_1642745581_375_88_l55p056m_VDP_ARM

and flowing  the error 

failed_registration

 

It is difficult to get around as documentation is helping me to solve this issue. 

 

Thanks,
Josna.

 

4 REPLIES 4
jenn_kh
Community Moderator

Re: Connecting VISA API using Two-way SSL is not working

Thank you for reaching out, @JB1! An agent is looking for a solution for you and will get back to you shortly. In the meantime, if anyone has any ideas that you feel may help, please share them with Josna here. -Jenn

API_Products
Visa Developer Support Specialist

Re: Connecting VISA API using Two-way SSL is not working

Hi @JB1,

 

When creating a project, I recommend you to use the default generate a CSR for me option. 

 

The error 400 - 9124 Expected input credential was not present usually occurs when the credentials used are invalid. Please confirm if you are using valid credentials? To access your project credentials, please login to your VDP account > My Account > Dashboard > project app > Credentials

 

20190920 Credentials.png

 

Here's the quick start guide for developers: https://developer.visa.com/pages/working-with-visa-apis/visa-developer-quick-start-guide 

 

There is the VDP Playground, Postman or SOAP UI tool to test the APIs. Below are the user guides for these respective tools.

VDP Playground – https://community.developer.visa.com/t5/Developer-Tools/How-to-test-and-troubleshoot-APIs-with-the-V... 

Postman – https://developer.visa.com/pages/working-with-visa-apis/two-way-ssl#testing_twoway_ssl_connectivity_... 

SOAP UI – https://developer.visa.com/pages/working-with-visa-apis/two-way-ssl#testing_twoway_ssl_connectivity_... 

 


 




Thanks,

Diana



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

JB1
Helper

Re: Connecting VISA API using Two-way SSL is not working

I have already used the same links from your documentation. 

These errors are appearing only when I am running those on corporate VPN. But VPN seems to allow my query

 
For some reason I can't add my response code in this reply, If I try to add I keep receiving 403 forbidden issues. this editor is a nightmare to put all the content I need to.
So am sharing this link for the code I am want you to check and help me. on the below link please check at javascript section for the coe.
 
I want to use my custom CSR rather than using default once this is loved.
 
Thanks,
Josna.
 
API_Products
Visa Developer Support Specialist

Re: Connecting VISA API using Two-way SSL is not working

Hi @JB1,

 

It looks like you are getting error 400, message: expected input credential was not present.


This usually occurs when your certificates are not sent. Or this error can occur when Basic Authentication is not sent in the header with the username and password base64 encoded.


• Keystore is not setup. Certificates are not in the keystore


○ For java keystore (jks) run keytool command and verify all the certificates have been imported on the keystore
§ keytool -list -v -keystore keystore.jks

 

○ For a p12 execute the following openssl command:
§ openssl pkcs12 -info -in keyStore.p12


• In SOAPUI check File->Settings->SSL Settings and make sure the KeyStore and KeyStore Password are populated in Soap UI
• Check SSL Info Tab in SOAP UI Response and verify you have a Local Certificate 1 , Local Certificate 2 followed by Peer Certificate 1 and Peer Certificate 2

 

You can also refer to this community forum post, where I've provided instructions on how to fix the error: https://community.developer.visa.com/t5/Two-way-SSL-X-Pay-Token/Always-getting-quot-Expected-input-c... 




Thanks,

Diana



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