I am trying to solve the following issue:
Exception setting "SecurityProtocol": "Cannot convert value "tls13, tls12, tls11, tls" to type "System.Net.SecurityProtocolType" due to invalid enumeration values. Specify one of the following enumeration values and try again. The possible enumeration values are "Ssl3, Tls"."
Here is my system info (windows 7/64bits):
Powershell version is:
PS > $PSVersionTable
Name Value
---- -----
CLRVersion 2.0.50727.8789
BuildVersion 6.1.7601.17514
PSVersion 2.0
WSManStackVersion 2.0
PSCompatibleVersions {1.0, 2.0}
SerializationVersion 1.1.0.1
PSRemotingProtocolVersion 2.1
I did follow instructions from here. This is equivalent to:
# set strong cryptography on 64 bit .Net Framework (version 4 and above)
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord
And I could verify that I have:
However it stills fails for me (using a newly created powershell window):
PS > [enum]::GetNames([Net.SecurityProtocolType])
Ssl3
Tls
For reference: