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

fix for TSL-SSL issue #2091

Closed
wants to merge 1 commit into from
Closed

Conversation

ati-ozgur
Copy link

@ati-ozgur ati-ozgur commented Mar 5, 2018

I got an following TSL-SSL error when tried to use scoop search.
I used following solution from stackoverflow to resolve this issue. It is only one line to choose TSL-SSL version for web request.
https://stackoverflow.com/questions/41618766/powershell-invoke-webrequest-fails-with-ssl-tls-secure-channel

invoke-webrequest : The request was aborted: Could not create SSL/TLS secure channel.
At C:\Users\ati_o\scoop\apps\scoop\current\libexec\scoop-search.ps1:52 char:15
+     $result = invoke-webrequest $url -UseBasicParsing | select -exp c ...
+               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

invoke-webrequest : The request was aborted: Could not create SSL/TLS secure channel.
At C:\Users\ati_o\scoop\apps\scoop\current\libexec\scoop-search.ps1:52 char:15
+     $result = invoke-webrequest $url -UseBasicParsing | select -exp c ...
+               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

invoke-webrequest : The request was aborted: Could not create SSL/TLS secure channel.
At C:\Users\ati_o\scoop\apps\scoop\current\libexec\scoop-search.ps1:52 char:15
+     $result = invoke-webrequest $url -UseBasicParsing | select -exp c ...
+               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

invoke-webrequest : The request was aborted: Could not create SSL/TLS secure channel.
At C:\Users\ati_o\scoop\apps\scoop\current\libexec\scoop-search.ps1:52 char:15
+     $result = invoke-webrequest $url -UseBasicParsing | select -exp c ...
+               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

invoke-webrequest : The request was aborted: Could not create SSL/TLS secure channel.
At C:\Users\ati_o\scoop\apps\scoop\current\libexec\scoop-search.ps1:52 char:15
+     $result = invoke-webrequest $url -UseBasicParsing | select -exp c ...
+               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

invoke-webrequest : The request was aborted: Could not create SSL/TLS secure channel.
At C:\Users\ati_o\scoop\apps\scoop\current\libexec\scoop-search.ps1:52 char:15
+     $result = invoke-webrequest $url -UseBasicParsing | select -exp c ...
+               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

invoke-webrequest : The request was aborted: Could not create SSL/TLS secure channel.
At C:\Users\ati_o\scoop\apps\scoop\current\libexec\scoop-search.ps1:52 char:15
+     $result = invoke-webrequest $url -UseBasicParsing | select -exp c ...
+               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

No matches found.

@r15ch13
Copy link
Member

r15ch13 commented Mar 5, 2018

That should be already fixed by #2074 and #2084
Did you update scoop?

@r15ch13
Copy link
Member

r15ch13 commented Mar 12, 2018

superseded by #2074

@r15ch13 r15ch13 closed this Mar 12, 2018
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 this pull request may close these issues.

2 participants