infra-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Íñigo Goiri (JIRA) <j...@apache.org>
Subject [jira] [Comment Edited] (INFRA-16174) Windows: powershell can't fetch SSL
Date Mon, 12 Mar 2018 23:31:00 GMT

    [ https://issues.apache.org/jira/browse/INFRA-16174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16396240#comment-16396240
] 

Íñigo Goiri edited comment on INFRA-16174 at 3/12/18 11:30 PM:
---------------------------------------------------------------

Apparently now you need to do the following before:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Source: https://www.reddit.com/r/PowerShell/comments/48bbvb/need_help_invokewebrequest_error_response_could/


was (Author: elgoiri):
Apparently now you need to do the following before:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

> Windows:  powershell can't fetch SSL
> ------------------------------------
>
>                 Key: INFRA-16174
>                 URL: https://issues.apache.org/jira/browse/INFRA-16174
>             Project: Infrastructure
>          Issue Type: Bug
>          Components: Jenkins
>            Reporter: Allen Wittenauer
>            Priority: Major
>
> Something has happened (and I'm not sure when because, I'll be honest, I wasn't paying
much attention) to cause powershell HTTPS gets to fail.  For example:
> {code}
> powershell -Command "Invoke-WebRequest https://github.com/google/protobuf/releases/download/v2.5.0/protoc-2.5.0-win32.zip
-OutFile protoc-2.5.0-win32.zip
> {code}
> and
> {code}
> powershell -Command "Invoke-WebRequest https://issues.apache.org/jira/secure/attachment/12885053/HADOOP-14667.05.patch
-Outfile H14667.patch
> {code}
>  both fail with similar errors:
> {code}
> Invoke-WebRequest : The request was aborted: Could not create SSL/TLS secure channel.
> At line:1 char:1
> + Invoke-WebRequest https://issues.apache.org/jira/secure/attachment/12 ...
> + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest)
[Invoke-WebRequest], WebExc 
>    eption
>     + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
> {code}
> I'm not sure what's wrong as it used to work. Does Windows need a patch or something
to update certificates or something similar?
> Thanks!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message