Skip to content

Commit 84e8daf

Browse files
committed
chore(core): Deprecate tls1 and tls1.1
IETF in 2021 deprecated these. See: https://datatracker.ietf.org/doc/html/rfc8996
1 parent 0f6d012 commit 84e8daf

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
### Bug Fixes
44

5+
- **chore:** Deprecate tls1 and tls1.1 ([#4950](https://github.com/ScoopInstaller/Scoop/pull/4950))
56
- **chore:** Update Nonportable bucket URL ([#4955](https://github.com/ScoopInstaller/Scoop/issues/4955))
67
- **core:** Using `Invoke-Command` instead of `Invoke-Expression` ([#4941](https://github.com/ScoopInstaller/Scoop/issues/4941))
78
- **core:** Load config file before initialization ([#4932](https://github.com/ScoopInstaller/Scoop/issues/4932))

lib/core.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ function Optimize-SecurityProtocol {
99

1010
# If not, change it to support TLS 1.2
1111
if (!($isNewerNetFramework -and $isSystemDefault)) {
12-
# Set to TLS 1.2 (3072), then TLS 1.1 (768), and TLS 1.0 (192). Ssl3 has been superseded,
13-
# https://docs.microsoft.com/en-us/dotnet/api/system.net.securityprotocoltype?view=netframework-4.5
14-
[System.Net.ServicePointManager]::SecurityProtocol = 3072 -bor 768 -bor 192
12+
# Set to TLS 1.2 (3072). Ssl3, TLS 1.0, and 1.1 have been deprecated,
13+
# https://datatracker.ietf.org/doc/html/rfc8996
14+
[System.Net.ServicePointManager]::SecurityProtocol = 3072
1515
}
1616
}
1717

0 commit comments

Comments
 (0)