diff options
author | Caleb Webber <seeplusplus@users.noreply.github.com> | 2018-07-23 10:28:42 -0400 |
---|---|---|
committer | Mathew Robinson <chasinglogic@gmail.com> | 2018-07-23 10:32:05 -0400 |
commit | 9b9359528083d47271cfed7e5c5d5316887d8093 (patch) | |
tree | e9ea1f0117bf1d2b02485cc646f554974e72e7e9 /src/mongo/installer | |
parent | fac322339b61e92f1d275099e5ecc2fe06c3fd09 (diff) | |
download | mongo-9b9359528083d47271cfed7e5c5d5316887d8093.tar.gz |
SERVER-35936 Allow PowerShell to connect using TLS 1.2
Set value instead of appending - append not supported in some
environments.
Closes #1249
Signed-off-by: Mathew Robinson <chasinglogic@gmail.com>
Diffstat (limited to 'src/mongo/installer')
-rwxr-xr-x | src/mongo/installer/compass/Install-Compass.ps1.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/installer/compass/Install-Compass.ps1.in b/src/mongo/installer/compass/Install-Compass.ps1.in index 11d79a30696..8d123e38d39 100755 --- a/src/mongo/installer/compass/Install-Compass.ps1.in +++ b/src/mongo/installer/compass/Install-Compass.ps1.in @@ -33,6 +33,11 @@ Remove-Item $CompassExe -ErrorAction:Ignore try {
Write-Output "Downloading Compass from $CompassUrl"
+
+ # Default PowerShell SecurityProtocol does not support Tls1.2 (required by domain)
+ if ([Net.ServicePointManager]::SecurityProtocol.ToString() -NotMatch "Tls12") {
+ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
+ }
Invoke-WebRequest -Uri $CompassUrl -OutFile $CompassExe
Write-Output "Installing Compass"
|