Skip to content

docs: Fix more installation commands on Windows#27841

Merged
webvictim merged 2 commits intomasterfrom
gus/docs/windows-install
Jun 14, 2023
Merged

docs: Fix more installation commands on Windows#27841
webvictim merged 2 commits intomasterfrom
gus/docs/windows-install

Conversation

@webvictim
Copy link
Copy Markdown
Contributor

curl -O doesn't work in PowerShell. I tried to convert the rest of the instructions to be agnostic between cmd.exe and PowerShell, but it couldn't be done without adding tabs. Instead, I made the command more obviously PowerShell-esque.

Copy link
Copy Markdown
Contributor

@alexfornuto alexfornuto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was unable to run this command successfully in Windows Server 2016.

PS C:\Users\Administrator> Invoke-WebRequest -OutFile teleport-v13.0.4-windows-amd64-bin.zip -Uri https://cdn.teleport.dev/teleport-v13.0.4-windows-amd64-bin.zip
Invoke-WebRequest : The request was aborted: Could not create SSL/TLS secure channel.
At line:1 char:1
+ Invoke-WebRequest -OutFile teleport-v13.0.4-windows-amd64-bin.zip -Ur ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

@webvictim
Copy link
Copy Markdown
Contributor Author

@alexfornuto Interesting, the same command copy/pasted works fine on Windows Server 2019.

I'll investigate...

@webvictim
Copy link
Copy Markdown
Contributor Author

webvictim commented Jun 14, 2023

@alexfornuto Can you try this?

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest -OutFile teleport-v13.0.4-windows-amd64-bin.zip -Uri https://cdn.teleport.dev/teleport-v13.0.4-windows-amd64-bin.zip

Apparently Windows Server 2016 PowerShell only uses TLS 1.0 by default, but our CDN will require TLS 1.2 as a minimum.

@alexfornuto
Copy link
Copy Markdown
Contributor

@webvictim that command works with 2016. If it works with 2019+ you could just use that. Otherwise we'll need to differentiate.

@webvictim
Copy link
Copy Markdown
Contributor Author

Yes, I tested it on 2019 and it works too. I'll update the instructions.

@webvictim webvictim enabled auto-merge June 14, 2023 22:17
@webvictim webvictim added this pull request to the merge queue Jun 14, 2023
@webvictim
Copy link
Copy Markdown
Contributor Author

webvictim commented Jun 14, 2023

There is one more mention of curl -O for Windows here:

$ curl -O https://cdn.teleport.dev/teleport-v(=teleport.version=)-windows-amd64-bin.zip

It doesn't seem to actually appear anywhere in the live docs, however. I presume it's an older page that's been deprecated.

Merged via the queue into master with commit 60656b8 Jun 14, 2023
@webvictim webvictim deleted the gus/docs/windows-install branch June 14, 2023 22:41
@public-teleport-github-review-bot
Copy link
Copy Markdown

@webvictim See the table below for backport results.

Branch Result
branch/v13 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants