HttpWebResponse: Could not create SSL/TLS secure channel

Hi @Trumf

checking your two domains there is the expected result.

The first - https://check-your-website.server-daten.de/?q=mail.perera.dk#connections

Tls.1.0 and 1.1 are deactivated.

The second - https://check-your-website.server-daten.de/?q=webmail.perera.dk#connections

Tls.1.0 and 1.1 are active.

But if your machine with the running HttpWebRequest isn't new, .NET uses Tls.1.0.

First domain -> doesn't work. Second -> works.

Add something like

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 Or SecurityProtocolType.Tls11 Or SecurityProtocolType.Tls

so your code uses Tls.1.2 to connect.

1 Like