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

Highlighted

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

Hi Vivek,

I am not getting any response in exception 

it is giving  me an error at the line below in exception block.


HttpWebResponse httpWebResponse = (HttpWebResponse)webException.Response;
Console.WriteLine("Received error status code: " + httpWebResponse.StatusCode);

 

Capture.PNG

Highlighted

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

Hi,
Any luck

Highlighted

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

Hi Vivek,

As I have shared code with you I am using.

 ServicePointManager.Expect100Continue = true;
ServicePointManager.DefaultConnectionLimit = 9999;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;;

 Most of the solutions suggest the same, which I am already using.
1. Maybe my certificate is not correct (How can I test it?).

2. Maybe a certificate needs to install anywhere(Isn't it).

3. Why I am not getting any response in my exception?

Please provide me your official email so I can share more certificate details so we can debug it. I need to finish this task as soon as possible  

 

Highlighted
Visa Dev Moderator

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

Hey @granular-smart,

 

Can you please let us know if your issue is resolved or if you're still experiencing an issue? I'd be happy to help you resolve any issues that you are facing.

 



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

Thanks,
Diana