Skip to content

Commit

Permalink
Merge pull request #81 from BipulRaman/master
Browse files Browse the repository at this point in the history
Enforcing TLS 1.2
  • Loading branch information
fluffynuts authored Jun 28, 2022
2 parents c470451 + 628fb62 commit d81ce8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions install-dotnet-core-sdk-1.1.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#Enforce TLS 1.2 as Microsoft is deprecating all old TLS versions
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12;

$installer="dotnet-dev-win-x64.1.1.14.exe"
Write-Host "Downloading $installer"
Invoke-WebRequest -Uri "https://download.visualstudio.microsoft.com/download/pr/c6b9a396-5e7a-4b91-86f6-f9e8df3bf1dd/6d61addfd6069e404981bede03f8f4f9/$installer" -OutFile $installer
Expand Down
3 changes: 3 additions & 0 deletions install-net-framework-sdk-3.5.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#Enforce TLS 1.2 as Microsoft is deprecating all old TLS versions
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12;

if (-not (Test-Path dotnetfx35.exe)) {
Write-Host "Downloading dotnetfx35.exe"
Invoke-WebRequest -Uri "https://download.microsoft.com/download/2/0/E/20E90413-712F-438C-988E-FDAA79A8AC3D/dotnetfx35.exe" -OutFile dotnetfx35.exe
Expand Down

0 comments on commit d81ce8a

Please sign in to comment.