8000 Problem with Powershell and https proxy under Linux · Issue #14120 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content
Problem with Powershell and https proxy under Linux #14120
@frankpau

Description

@frankpau

Hi,

i'm using powershell (7.1.0) under Centos 7.
I'm having a problem getting the for my company required https proxy to work with powershell.
i have set the proxy in the Environment using
export http_proxy=http://: and
export https_proxy=https://:

if i then start pwsh and execute
Invoke-WebRequest http://woshub.com -Verbose -Debug
i get a StatusCode 200 back and the connect seems fine.

if i try this with https://woshub.com i can't get a working connection.

PS /root> Invoke-WebRequest https://woshub.com -Verbose -Debug
VERBOSE: GET https://woshub.com/ with 0-byte payload
Invoke-WebRequest: Connection timed out

i also tried setting the proxy inside powershell using:

[system.net.webrequest]::defaultwebproxy = new-object system.net.webproxy('https://:')
which resulted in the same behaviour

Steps to reproduce

install powershell on linux system behind https proxy, set the proxy in enviroment and try to open a https connection

Expected behavior

use the configured https proxy

Actual behavior

Connection timed out

Environment data

PS /root> $PSVersionTable

Name Value


PSVersion 7.1.0
PSEdition Core
GitCommitId 7.1.0
OS Linux 3.10.0-693.el7.x86_64 #1 SMP Thu Jul 6 19:56:57 EDT 2017
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-AnsweredThe question is answered.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      < 29F6 /div>
      0