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

ezamarichard
Regular Contributor

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

FOR TWO DAYS NOW AV BEEN GETTING THIS ERROR

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

when i use another host http status code is okay

But sandbox api keeps throwing me this error

eg https://nwsc.co.ug posting to this url gives me http code 200

i generated p12 certificate file from the my self signing csr and private Key

but still cant connect to the api

 

What could be missing

Thanks for your help

 

4 REPLIES 4
rafatshaik
Newbie

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

hey,

the mistake is familiar and there are many motives why the SSL/TLS negotiation might also fail. The maximum commonplace is an invalid or expired server certificates, and also you took care of that by way of providing your very own server certificates validation hook, however isn't always necessarily the best reason. The server may additionally require mutual authentication, it can be configured with a suites of ciphers not supported through your purchaser, it may have a time go with the flow too large for the handshake to be triumphant and many extra reasons.

The excellent answer is to use the SChannel troubleshooting equipment set. SChannel is the SSPI provider chargeable for SSL and TLS and your patron will use it for the handshake. take a look at TLS/SSL equipment and Settings.

also do see this

 

API_Managers
Visa Developer Support Specialist

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

Hi @ezamarichard,                              

 

Please try the following steps to resolve the SSL issue:

  1. Use SOAPUI to test connectivity credentials and test ‘HelloWorld’ Example provided in the getting started guide. https://developer.visa.com/vdpguide#get-started-overview  
  2. If SOAPUI works – compare the request coming out of your app with the request coming out of SOAPUI.
  3. Create a new .p12 using the command line below.
  • Command line: openssl pkcs12 -export -out p12certfile.p12 -inkey example-key.pem -in cert.pem
  • After that, try to call the helloworld method and see if you get a successful response.

After trying those steps, if you see that SOAPUI does not work – provide the SOAPUI screenshots, raw request message, and the error messages.

 




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.

ezamarichard
Regular Contributor

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

Here was my solution

1 i imported the p12 file to personal key store

2 exported it into a .der file

3 reimported it to the trusted security key store

 

This is How my pc started trusting the self signed certificate

API_Managers
Visa Developer Support Specialist

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

Hi @ezamarichard,                             

 

That's excellent and you're doing a really good job! Thanks for sharing how you resolved the problem.

 




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.