Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Client Certificate Authentication in WebCmdlets Unavailable for macOS #4650

Copy link
Copy link
@markekraus

Description

@markekraus
Issue body actions

Due to an upstream incompatibility between CoreFX and macOS's implementation of curl (dotnet/corefx#19718), the addition of Client Certificate Authentication in PowerShell 6 (#4546) presents the user with an error on macOS when attempting to use -Certificate with Invoke-Webrequest and Invoke-RestMethod

Steps to reproduce

$certficiate = Get-PFXCertificate -Path c:\path\to\cert.pfx
$Result = Invoke-WebRequest -uri https://localhost:8083 -Certificate $certificate
$Result.StatusCode

Expected behavior

200

Actual behavior

An error message containing the following:

The handler does not support client authentication certificates with this combination of libcurl (7.55.1)

Environment data

Name                           Value
----                           -----
PSVersion                      6.0.0-beta
PSEdition                      Core
GitCommitId                    v6.0.0-beta.5-78-gcdbbb7a4bb51929470a5ace096999db155a865b2

on macOS 10.12

References

#3648

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productOS-macOSWG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility modulecmdlets in the Microsoft.PowerShell.Utility module

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.