From aa21804165aa51db552d687c8d7c970fce454fbf Mon Sep 17 00:00:00 2001 From: Martijn Suijlen <37180297+BlueIcarus@users.noreply.github.com> Date: Thu, 14 Jan 2021 23:23:19 +0100 Subject: [PATCH] Added TLS security protocol for Powershell downloads (#73226) ##### SUMMARY Added `[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12` to the Powershell scripts that use a file download. If not specified the script won't be allowed to download data from the mentioned URL's. ##### ISSUE TYPE - Docs Pull Request +label: docsite_pr --- docs/docsite/rst/user_guide/windows_setup.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/docsite/rst/user_guide/windows_setup.rst b/docs/docsite/rst/user_guide/windows_setup.rst index c599e4c916d..47fbcf88a46 100644 --- a/docs/docsite/rst/user_guide/windows_setup.rst +++ b/docs/docsite/rst/user_guide/windows_setup.rst @@ -37,6 +37,7 @@ This is an example of how to run this script from PowerShell: .. code-block:: powershell + [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 $url = "https://raw.githubusercontent.com/jborean93/ansible-windows/master/scripts/Upgrade-PowerShell.ps1" $file = "$env:temp\Upgrade-PowerShell.ps1" $username = "Administrator" @@ -95,6 +96,7 @@ The following PowerShell command will install the hotfix: .. code-block:: powershell + [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 $url = "https://raw.githubusercontent.com/jborean93/ansible-windows/master/scripts/Install-WMF3Hotfix.ps1" $file = "$env:temp\Install-WMF3Hotfix.ps1" @@ -120,6 +122,7 @@ To use this script, run the following in PowerShell: .. code-block:: powershell + [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 $url = "https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1" $file = "$env:temp\ConfigureRemotingForAnsible.ps1"