Skip to content

Commit

Permalink
Use TLS 1.2 for VBoxGuestAdditions download
Browse files Browse the repository at this point in the history
The request to virtualbox.org fails without it, and it needs to be
explicitly set in order for Windows Server 2012 R2 to use it.
  • Loading branch information
codestothestars committed Oct 31, 2019
1 parent 34ad03e commit 8b621a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/vm-guest-tools.bat
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if exist "C:\Users\vagrant\VBoxGuestAdditions.iso" (
)

if not exist "C:\Windows\Temp\VBoxGuestAdditions.iso" (
powershell -Command "(New-Object System.Net.WebClient).DownloadFile('https://download.virtualbox.org/virtualbox/6.0.10/VBoxGuestAdditions_6.0.10.iso', 'C:\Windows\Temp\VBoxGuestAdditions.iso')" <NUL
powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (New-Object System.Net.WebClient).DownloadFile('https://download.virtualbox.org/virtualbox/6.0.10/VBoxGuestAdditions_6.0.10.iso', 'C:\Windows\Temp\VBoxGuestAdditions.iso')" <NUL
)

cmd /c ""C:\Program Files\7-Zip\7z.exe" x C:\Windows\Temp\VBoxGuestAdditions.iso -oC:\Windows\Temp\virtualbox"
Expand Down

0 comments on commit 8b621a5

Please sign in to comment.