.net - 我修复了一个 TLS 1.2 问题,但我不知道它是如何/为什么工作的,或者它在做什么?这个 Powershell 命令在做什么?

标签 .net powershell ssl reporting-services tls1.2

在各种 Windows 2012 R2 服务器上,我遇到了 TLS 问题。

如果我运行:

Install-Module -Name ReportingServicesTools

我收到此错误(下面的屏幕截图)

WARNING: Unable to download from URI 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409' to ''.

WARNING: Unable to download the list of available providers. Check your internet connection.



TLS Error Issue

如果我只是在它上面放一个命令并运行它,它就可以完美运行。它在做什么,我在哪里可以在操作系统中手动配置它?在 GUI/注册表/等的某个地方?
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 #What is this doing?
Install-Module -Name ReportingServicesTools

最佳答案

简而言之,这不是特定于 PowerShell 的问题。 legacy TLS is no longer supported / by web properties/endpoints正如不久前宣布的那样。必须使用 TLS12。

Solving the TLS 1.0 Problem, 2nd Edition

End of support for TLS 1.0 and 1.1 in Microsoft Cloud App Security

GoDaddy Browsers end support for TLS 1.0 and 1.1 in March 2020

Cisco End of Life for TLS 1.0/1.1

As of March 31, 2020, Transport Layer Security (TLS) 1.0 and 1.1 will no longer be supported. All endpoints will be required to support TLS 1.2 after this date in order to function properly with Cisco Umbrella.

Update: Cisco Umbrella will continue to support Cisco AnyConnect and Cisco Umbrella Roaming Client versions that require TLS 1./0/1.1 until September 30th 2020. All other uses of TLS 1.0 and 1.1 will be discontinued as planned on March 31st.

TLS 1.0 and TLS 1.1 Are No Longer Secure

As of Chrome version 79, released last week, Chrome will start support and start enabling DNS Over HTTPS (DoH), and sites using TLS 1.0 and TLS 1.1 certificates for encryption will be marked as insecure. The marking of sites on TLS 1.0, is significant because 68% of websites still support TLS 1.0 which is insecure due to multiple vulnerabilities. If your web site uses a TLS 1.0 or 1.1 website, as of January 13, 2020 it will display the following warning, and in 2021 Chrome will not load websites with TLS 1.0 or 1.1.



因此,将该行放在所有 PowerShell、VSCode 配置文件中以及每个脚本的顶部,您将可以尝试触及任何 Web 端点。

关于.net - 我修复了一个 TLS 1.2 问题,但我不知道它是如何/为什么工作的,或者它在做什么?这个 Powershell 命令在做什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61551244/

相关文章:

c# - 为 WCF 服务启用 HTTPS 流量。将流量 http 更改为 https 的问题

ssl - 带有 IP 地址的 Google 托管证书

ssl - 带有 Nginx-Ingress-Controller 的 AWS 上 EKS 中的 gRPC

c# - WCF WF 服务,无法为具有权限的 SSL/TLS 建立安全通道

.net - 我能否创建一个与标准 .NET Framework 和 .NET Compact Framework 兼容的 DLL?

c# - C# 中将操作包装在上下文/作用域中的最佳方法

c# - 如何跨 AppDomain 边界传递 CancellationToken?

powershell - 如何使用Powershell中的函数更改变量的值?

Powershell命令?

sql-server - 在PowerShell中提取SQL Server服务信息,转义$符号powershell