MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.24k stars 21.41k forks source link

PrepPython script requires TLS1.2 enabled #8102

Closed gorgi closed 6 years ago

gorgi commented 6 years ago

The PrepPython script is downloading python from https://www.python.org and currently fails with message "could not create ssl/tls secure channel".

I added this line on top and solved the problem: [Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls"


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

mimckitt commented 6 years ago

@gorgi Thanks for the feedback! We are currently investigating and will update you shortly.

mimckitt commented 6 years ago

@gorgi are you referring to these:

image

Also, are they failing to download or do you see that error after you download and attempt to install?

Thraka commented 6 years ago

@MicahMcKittrick-MSFT He means the powershell script at this heading. I verified his fix. [Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls" needs to be added to the top of that powershell script so it looks like this:

[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls"
$is_emulated = $env:EMULATED -eq "true"
$is_python2 = $env:PYTHON2 -eq "on"
$nl = [Environment]::NewLine

if (-not $is_emulated){

... the rest of the script ...

@gorgi Thanks for catching this! They must have changed the requirements at some point. Cheers!

mimckitt commented 6 years ago

@Thraka thanks for verifying! I can make the change to the doc.