Hello Guys, I keep getting the error The request was aborted: Could not create SSL/TLS secure channel. when i try call the service. however it works fine when i call the service using soupUI. I am using C# downloaded code to test Visa Direct API.
Solved! Go to Solution
should use TLS 1.2
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
Hi
Did you find the solution for the above error. I am also facing the same issue where I am getting error saying "The request was aborted: Could not create SSL/TLS secure channel." I have tried all the options but no luck.
Its working fine with SOAP UI, but when I try with .NET its not working. Can you please help me on this issue.?
Thanks,
Ramesh
Hi @ramesharige,
If you are using C# please make a p12 file using the commands from github
https://github.com/visa/SampleCode/tree/master/vdp-c-sharp#usage
You can also refer to manual
https://github.com/visa/SampleCode/wiki/Manual
The problem could be that you have made a wrong p12 certificate.
Thanks those links helped me. So we need to make sure to generate certificate differently if we are using c#.net
Hi Dana
Thanks for your URLs, It worked like charm when I followed those instructions.
It was not working when I tried first time. Again I tried to generate with help of your URL's it worked. Thanks alot.
Thanks,
Ramesh
Those links no longer work, do you have an updated url?
Hello @appdevelopers,
Due to some security issues, we are not able to upload the code on GitHub. VDP engineering team is workin on this but meanwhille, you can create a project on VDP and get the sample code from the Test Data of the project.
Please follow the steps in the “Get Started” link below to register and create a Visa Developer application.
https://developer.visa.com/pages/working-with-visa-apis
This guide walks you through the key steps for application creation, credentials, and connection validation.
If you are ready after testing your App in sandbox, send us a production request and we will evaluate your Application and other credentials.
Let me know if you have any additional questions.
Thank you,
Vaibhav
I tried different openssl commands to generate the p12 certificate and found that the following works for me:
> openssl pkcs12 -export -in cert.pem -inkey "privateKey.pem" -out myProject_keyAndCertBundle.p12
See my post on a different thread for more information:
Hey @bstricker,
That's good news. Thanks for sharing the command that got you successful results. It's greatly appreciated.