Getting error for Web API response

harishpawar
Regular Visitor

Getting error for Web API response

I have created sample project using my credentials. When i tried to call api from using c# code i am getting following error. I have created pb12 certificate as well and used that in my sample code.

The request was aborted: Could not create SSL/TLS secure channel.

PLease find attched screen shot

3 REPLIES 3
API_Managers
Visa Developer Support Specialist

Re: Getting error for Web API response

Hello,

 

Thanks for posting your question to the Visa Developer Community Forum! I'd like to help you find a solution to this question.

 

Can you please try creating a new .p12 using this command line:

 

openssl pkcs12 -export -out p12certfile.p12 -inkey example-key.pem -in cert.pem

 

  • Use example-key.pem as private key, which you generated at the time of CSR creation.
  • Use cert.pem as the client certificate, which you downloaded from the VDP portal.
  • The above command will prompt you for the export password. You will need this password for invoking the API.

 

Thank you,

Diana




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.

harishpawar
Regular Visitor

Re: Getting error for Web API response

Yes, I have tried this multiple times and getting same error. 

API_Managers
Visa Developer Support Specialist

Re: Getting error for Web API response

Hi,

 

Thanks for providing the Visa developer community with the current status update of your project. 

 

Which API were you trying to call? Can you please share your request header and snapshots of the most recent error received?

 

Our getting started guide includes steps to access the helloworld application, which is the fastest way to test your access credentials and to create sample HTTP requests that work.

 

In the “getting started” guide, please refer to the “Testing two-way SSL Connectivity, using SOAPUI” section using this link - https://developer.visa.com/vdpguide#soap_ui. Once you get your SOAPUI connection to work, review the raw HTTP request – you will get the exact value of an encoded username and a password that works. You can then compare the working value with the value you generate in your IDE.
  
I'd like to provide you with a couple of notes related to certificates: certificates are required to establish a two-way SSL connection. You will need a root certificate (VICA-SBX.pem), your application certificate (cert.pem), and also your private key. The private key gets created when you generate your CSR, or you can download the private key from the Visa Developer website, if you chose "create a CSR for me" option, while creating your Visa Developer App. Once you have all three files in your local directory, you will need to combine them into a key store. You can decide whether to use java key store (JKS) or PKCS (P12) key store, depending on what your development environment requires. There are sections in “getting started” ->“Using two-way SSL” (https://beta.developer.visa.com/vdpguide#twowayssl), that describe how to create each type of key store, please follow those steps. Please Note: The root certificate is not needed for a P12 file, you can create a P12 file out of two files: private key and cert.pem.

 

Hope that helps and please let me know how things are going for you.

 

Thank you,

Diana




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.