-
Notifications
You must be signed in to change notification settings - Fork 551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot convert value "Tls,Tls1,Tls2" to type "System.Net.SecurityProtocol.Type" #1406
Comments
Ftr, this issue was actually introduced by the latest commit c252c74 |
…bootstrap in order to fix issue saltstack/salt-bootstrap#1406.
…bootstrap in order to fix issue saltstack/salt-bootstrap#1406.
…bootstrap in order to fix issue saltstack/salt-bootstrap#1406.
What version of Windows are you running? |
After investigating a little further, even if you set those constants directly, the version of .NET installed on Windows 7 by default still does not support them. Whether you set the text value ( |
Also this KB will apparently enable Tls12 on Windows 7: KB3154518 |
In PR boxcutter/windows#201, we're explicitly patching out Tls12 to work around this issue and will probably end up linking to a previous commit if you guys choose to remove W7 out of your support matrix. |
…bootstrap in order to fix issue saltstack/salt-bootstrap#1406.
…or salt-bootstrap in order to fix issue saltstack/salt-bootstrap#1406." This reverts commit 9645c59.
…or salt-bootstrap in order to fix issue saltstack/salt-bootstrap#1406." This reverts commit 9645c59.
Description of Issue/Question
In salt-bootstrap.ps1, the
System.Net.SecurityProtoclType::Tls1
andSystem.Net.SecurityProtoclType::Tls2
enumerations do not exist on .NET Framework 4.0. This means the following line of code atsalt-bootstrap.ps1:102
has an undocumented dependency;This results in the following error/backtrace:
You could wrap it in an exception handler and assign the constants directly to remain independent of the available .NET framework versions.
Setup
Use .NET Framework 4.0
Steps to Reproduce Issue
Run
salt-bootstrap.ps1
Versions and Systems
Salt-Bootstrap.ps1 doesn't have a version parameter, but the url it's being requested from is https://raw.githubusercontent.com/saltstack/salt-bootstrap/stable/bootstrap-salt.ps1, and the latest commit is c252c74.
The text was updated successfully, but these errors were encountered: