This is an automated email from the ASF dual-hosted git repository.

davydm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4net.git


The following commit(s) were added to refs/heads/master by this push:
     new 628fb62f Enforcing TLS 1.2
     new d81ce8a7 Merge pull request #81 from BipulRaman/master
628fb62f is described below

commit 628fb62fc39d916ba711d7ade4d8b0234613cb7f
Author: Bipul Raman (MSFT) <[email protected]>
AuthorDate: Fri Mar 18 19:32:53 2022 +0530

    Enforcing TLS 1.2
    
    Enforce TLS 1.2 in PowerShell Scrips as Microsoft is deprecating all old 
TLS versions
---
 install-dotnet-core-sdk-1.1.ps1   | 3 +++
 install-net-framework-sdk-3.5.ps1 | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/install-dotnet-core-sdk-1.1.ps1 b/install-dotnet-core-sdk-1.1.ps1
index d7333e89..038d9d62 100644
--- a/install-dotnet-core-sdk-1.1.ps1
+++ b/install-dotnet-core-sdk-1.1.ps1
@@ -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
diff --git a/install-net-framework-sdk-3.5.ps1 
b/install-net-framework-sdk-3.5.ps1
index e78fa37f..7858dc98 100644
--- a/install-net-framework-sdk-3.5.ps1
+++ b/install-net-framework-sdk-3.5.ps1
@@ -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

Reply via email to