metasploitable3/scripts/installs/install_openjdk6.bat
Hlynrkjaer 4b3ad2a7b2
Fix for "Could not create SSL/TLS secure channel".
Proposed file change is potential fix for ""Could not create SSL/TLS secure channel"" with ""scripts/installs/install_openjdk6.bat"".
Discussed there: https://github.com/rapid7/metasploitable3/issues/219
2018-03-03 15:23:26 +00:00

3 lines
472 B
Batchfile

powershell -Command "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; (New-Object System.Net.WebClient).DownloadFile('https://github.com/downloads/alexkasko/openjdk-unofficial-builds/openjdk-1.6.0-unofficial-b27-windows-amd64.zip', 'C:\Windows\Temp\openjdk-1.6.0-unofficial-b27-windows-amd64.zip')" <NUL
cmd /c ""C:\Program Files\7-Zip\7z.exe" x "C:\Windows\Temp\openjdk-1.6.0-unofficial-b27-windows-amd64.zip" -oC:\openjdk6"