Skip to content

Install-Module -Name PackageManagement requires TLS 1.2 #1314

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
MSIH opened this issue Jun 16, 2020 · 1 comment · Fixed by #1315
Closed

Install-Module -Name PackageManagement requires TLS 1.2 #1314

MSIH opened this issue Jun 16, 2020 · 1 comment · Fixed by #1315
Labels
Resolution-Duplicate Will close automatically.

Comments

@MSIH
Copy link

MSIH commented Jun 16, 2020

"powershell.exe -NoLogo -NoProfile -Command 'Install-Module -Name PackageManagement -Force -MinimumVersion 1.4.6 -Scope CurrentUser -AllowClobber'",

To download the PackageManagement module requires TLS 1.2. Many users will get an error. Instead, I suggest adding code to force TLS 1.2

-Command '[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12; Install-Module -Name PackageManagement -Force -MinimumVersion 1.4.6 -Scope CurrentUser -AllowClobber

@ghost ghost added the Needs: Triage Maintainer attention needed! label Jun 16, 2020
@corbob
Copy link
Contributor

corbob commented Jun 16, 2020

I believe this to be related to PowerShell/vscode-powershell#2763 would probably be good to update both vscode extension and PSES at the same time. 🤷

@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label Jun 16, 2020
@ghost ghost added the Status: In PR label Jun 18, 2020
@ghost ghost added Status: Fixed and removed Status: In PR labels Jun 19, 2020
@TylerLeonhardt TylerLeonhardt added Resolution-Duplicate Will close automatically. and removed Needs: Maintainer Attention Maintainer attention needed! Needs: Triage Maintainer attention needed! labels Oct 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate Will close automatically.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants