Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Updated TLS logic to only add supported versions #233

Merged
merged 1 commit into from
Dec 4, 2020

Conversation

Claustn
Copy link

@Claustn Claustn commented Dec 4, 2020

I have tested running AU on Windows 1803 and 1903 which both fails trying to add Tls13, when trying to run the update script.

@majkinetor
Copy link
Owner

Nice, thx.

@majkinetor majkinetor merged commit 9fe7acc into majkinetor:master Dec 4, 2020

$AvailableTls = [enum]::GetValues('Net.SecurityProtocolType') # This way we do not try to add something that is not supported on every version of Windows like Tls13
#$AvailableTls = [enum]::GetValues('Net.SecurityProtocolType') | Where-Object { $_ -ge 'Tls' } If we want to enforce a minimum version
$AvailableTls.ForEach({[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor $_})
Copy link

@ExE-Boss ExE-Boss Dec 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this includes [Net.SecurityProtocolType]::Ssl3, which is no longer supported in new environments (e.g.: PowerShell Core).


Refs: #206, #216

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants