当前位置:网站首页>The request was aborted: Could not create SSL/TLS secure channel.
The request was aborted: Could not create SSL/TLS secure channel.
2022-06-24 03:26:00 【shawyang】
invoke-webrequest One url An error occurs when getting a file invoke-webrequest : The request was aborted: Could not create SSL/TLS secure channel.
invoke-webrequest "http://www.7-zip.org/a/7z1900-x64.msi" -outfile "c:\7z1900.msi"
【 Temporary solutions 】
powershell perform
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
【 Radical approach 】
Through the registry to achieve , Save the following code as tls1.2_on.reg, Double click the point “ yes ” After import , And on again powershell perform [Net.ServicePointManager]::SecurityProtocol Will show SystemDefault, In this way, it will be closed later powershell There will be no problem opening it
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319]
"SystemDefaultTlsVersions"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319]
"SystemDefaultTlsVersions"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v2.0.50727]
"SystemDefaultTlsVersions"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v2.0.50727]
"SystemDefaultTlsVersions"=dword:00000001
【 process analysis 】
server2016 On the system powershell An error is reported when you execute this command The request was aborted: Could not create SSL/TLS secure channel.
invoke-webrequest "http://www.7-zip.org/a/7z1900-x64.msi" -outfile "c:\7z1900.msi"
server 2016 powershell function [Net.ServicePointManager]::SecurityProtocol Check to see if Tls12.
at present Tls12(tls1.2,powershell If enabled , Will be displayed Tls12) It's mainstream ,IE Browsers do not support less than Tls12 Of https Visited , Access some directly without modification URL Will be submitted to the SSL/TLS dependent error msg.
server 2016 It needs to be transformed in the following way ,server 2019 Of powershell Default already tls1.2, No need to change .
https://docs.microsoft.com/zh-cn/powershell/module/powershellget/?view=powershell-7
As of April 2020, the PowerShell Gallery no longer supports Transport Layer Security (TLS) versions 1.0 and 1.1. If you are not using TLS 1.2 or higher, you will receive an error when trying to access the PowerShell Gallery. Use the following command to ensure you are using TLS 1.2:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
For more information, see the announcement in the PowerShell blog.
powershell Internal execution [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Just a temporary measure , close powershell Open it next time powershell It's still old Ssl3, Tls. The permanent solution is through the registry , As stated above .
It's solved tls1.2 And then visit invoke-webrequest "http://www.7-zip.org/a/7z1900-x64.msi" -outfile "c:\7z1900.msi" I won't make a mistake , success get To the file .
边栏推荐
- 11111dasfada and I grew the problem hot hot I hot vasser shares
- What technology does cloud computing elasticity scale? What are the advantages of elastic scaling in cloud computing?
- Coding CD of Devops
- What does cloud computing elasticity mean? What are its functions?
- Why use code signing? What certificates are required for code signing?
- Does the user need a code signing certificate? What is the use of a code signing certificate
- Where is the cloud game server? Can individuals rent cloud game servers?
- What is the maximum bandwidth of EIP? Mbps how to modify the bandwidth of EIP
- How does cloud computing achieve elastic scaling? What are the characteristics of elasticity?
- What is load balancing? What are the functions of load balancing?
猜你喜欢

Get to know MySQL database

Simple and beautiful weather code
![[51nod] 2102 or minus and](/img/68/0d966b0322ac1517dd2800234d386d.jpg)
[51nod] 2102 or minus and
![[51nod] 3216 Awards](/img/94/fdb32434d1343040d711c76568b281.jpg)
[51nod] 3216 Awards
![[51nod] 3395 n-bit gray code](/img/b5/2c072a11601de82cb92ade94672ecd.jpg)
[51nod] 3395 n-bit gray code

On Sunday, I rolled up the uni app "uview excellent UI framework"

Community pycharm installation visual database
![[51nod] 3047 displacement operation](/img/cb/9380337adbc09c54a5b984cab7d3b8.jpg)
[51nod] 3047 displacement operation
![[summary of interview questions] zj6 redis](/img/4b/eadf66ca8d834f049f3546d348fa32.jpg)
[summary of interview questions] zj6 redis

Ar 3D map technology
随机推荐
How to install the cloud desktop security server certificate? What can cloud desktops do?
[competition experience sharing] design of intelligent guide rod
Why does the fortress machine use an application publisher? What are the main functions of the fortress machine
Can elastic public IP be bound to a home server? The difference between elastic public IP and fixed IP
Tencent cloud CIF engineering efficiency summit ends perfectly
Tencent location service appeared at the 11th China Surveying and mapping Geographic Information Technology Equipment Expo
Cloud desktop server resource planning, what are the advantages of cloud desktop
Chapter 4: LED flash case of PS bare metal and FreeRTOS case development
How to install CentOS 6.5 PHP extension
General scheme for improving reading and writing ability of online es cluster
What is the edge calculator force? What about the edge calculator?
[1024 programmers' day] Why do some programmers leave work earlier than you?
"Sharp weapon" for enterprise resumption? When the sale comes, the contract should be signed like this!
Live broadcast Reservation: cloud hosting or cloud function, how can the business do a good job in technology selection?
Is the cloud game edge computing server highly required? What problems will occur during the use of cloud game edge computing server?
Industrial security experts talk about how to build security protection capability for government big data platform?
The server size of the cloud desktop. The cloud desktop faces the server configuration requirements
Ligature in font design
Grand summary of boutique idea plug-ins! Worth collecting
How to register a trademark? Is the process troublesome?