summaryrefslogtreecommitdiff
path: root/src/mongo/installer
diff options
context:
space:
mode:
authorCaleb Webber <seeplusplus@users.noreply.github.com>2018-07-23 10:28:42 -0400
committerMathew Robinson <chasinglogic@gmail.com>2018-07-23 10:32:05 -0400
commit9b9359528083d47271cfed7e5c5d5316887d8093 (patch)
treee9ea1f0117bf1d2b02485cc646f554974e72e7e9 /src/mongo/installer
parentfac322339b61e92f1d275099e5ecc2fe06c3fd09 (diff)
downloadmongo-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-xsrc/mongo/installer/compass/Install-Compass.ps1.in5
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"