Skip to content

Commit

Permalink
Fix issues mandiant#10: use HTTPS instead of HTTP when installing Box…
Browse files Browse the repository at this point in the history
…Starter
  • Loading branch information
htnhan committed Apr 1, 2019
1 parent 604c304 commit 9975346
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function installBoxStarter()
[System.Net.ServicePointManager]::SecurityProtocol = $AllProtocols
[System.Net.ServicePointManager]::CertificatePolicy = New-Object TrustAllCertsPolicy
# download and instal boxstarter
iex ((New-Object System.Net.WebClient).DownloadString('http://boxstarter.org/bootstrapper.ps1')); get-boxstarter -Force
iex ((New-Object System.Net.WebClient).DownloadString('https://boxstarter.org/bootstrapper.ps1')); get-boxstarter -Force
# Restore previous trust settings for this PowerShell session
# Note: SSL certs trusted from installing BoxStarter above will be trusted for the remaining PS session
[System.Net.ServicePointManager]::SecurityProtocol = $prevSecProtocol
Expand Down Expand Up @@ -172,7 +172,7 @@ if ([string]::IsNullOrEmpty($password)) {
# Install Boxstarter
Write-Host "[ * ] Installing Boxstarter"
try {
iex ((New-Object System.Net.WebClient).DownloadString('http://boxstarter.org/bootstrapper.ps1')); get-boxstarter -Force
iex ((New-Object System.Net.WebClient).DownloadString('https://boxstarter.org/bootstrapper.ps1')); get-boxstarter -Force
} catch {
$rc = installBoxStarter
if (-Not $rc) {
Expand Down

0 comments on commit 9975346

Please sign in to comment.