Skip to content
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

By default powershell uses TLS 1.0 the site security requires TLS 1.2 #24

Open
laboratoriodosfundos opened this issue Jul 6, 2021 · 3 comments · May be fixed by #48
Open

By default powershell uses TLS 1.0 the site security requires TLS 1.2 #24

laboratoriodosfundos opened this issue Jul 6, 2021 · 3 comments · May be fixed by #48

Comments

@laboratoriodosfundos
Copy link

Sometimes this is necessary to work:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 iwr https://raw.githubusercontent.com/shreyashsaitwal/rush-cli/main/scripts/install/install.ps1 -useb | iex

Here in Windows 7 even with everything updated I had to do it that way.
Here's the tip to want to go through this same difficulty.

@shreyashsaitwal
Copy link
Owner

shreyashsaitwal commented Jul 6, 2021

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Strange. You shouldn't need to add that manually. TLS 1.2 is enabled by default in the install script:

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Did you get any errors when you tried to run the install script without explicitly defining the security protocol? If yes, I'd be interested in knowing what the error was.

@laboratoriodosfundos
Copy link
Author

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Strange. You shouldn't need to add that manually. TLS 1.2 is enabled by default in the install script:

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Did you get any errors when you tried to run the install script without explicitly defining the security protocol? If yes, I'd be interested in knowing what the error was.

Yes, I had problems running as indicated in the tutorial, I spent more than 1 hour trying to solve it and I found out that this was it:
image

You should do some testing of the tool with Windows 7, during the construction of the project the color codes are significantly hindering the use:
image

@shreyashsaitwal
Copy link
Owner

Yes, I had problems running as indicated in the tutorial, I spent more than 1 hour trying to solve it and I found out that this was it

Oh, thanks. I will update the installation wiki to include this.

the project the color codes are significantly hindering the use:

I doubt there's much I can do here, as it's more of an issue with the terminal and not Rush. As a temporary solution, you can try switching to Git Bash. In the future, I might add a flag to disable the console colors.

@shreyashsaitwal shreyashsaitwal linked a pull request Nov 13, 2022 that will close this issue
@shreyashsaitwal shreyashsaitwal linked a pull request Nov 13, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants