C# call returns Could not create SSL/TLS secure channel

Hi,

I downloaded the C# sample code and added api key, api secret. I changed from v1 to v2 because that is what it is in Postman. The response is "Could not create SSL/TLS Secure channel".

This is the screenshot of the request

1625701140437.png


Please assist.

Thanks,

Cady

Best Answer

Answers

  • You can add all ssl/tls protocols with this code:

    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls | SecurityProtocolType.Ssl3;


    I hope it solves it.

  • cadyh
    cadyh Explorer
    Thanks .

    When I add this code. I then get different error, connection was forcibly closed by remote server.


  • cadyh

    You can add all ssl/tls protocols with this code:

    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls | SecurityProtocolType.Ssl3;


    I hope it solves it.