Created
April 14, 2020 20:32
-
-
Save infamousjoeg/fe2900a35d79f00eaec335856ab3a467 to your computer and use it in GitHub Desktop.
Force PowerShell to permanently use TLS and not SSL by "Enabling Strong Cryptography"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Open PowerShell as Administrator and check the current enabled protocols | |
[Net.ServicePointManager]::SecurityProtocol | |
# When I ran this, my output was: | |
# sslv2, tls | |
# 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 | |
# Set strong cryptography on 32 bit .Net Framework (version 4 and above) | |
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord | |
# Restart Powershell and check again for supported protocol by using: | |
[Net.ServicePointManager]::SecurityProtocol |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment