Code: Select all
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12
The problem is that this protocol in Windiws 7 is not activated and must be activated (perhaps in windows server it is necessary to activate it)
As I see in Google, you have to add a registration key, which I have already done.
Info protrocol SSL/TLS https://support.microsoft.com/es-es/top ... cjxzdyb000
(I attach a file of the created registry)
Code: Select all
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000001