Skip to content

'Invoke-WebRequest -SkipCertificateCheck' doesn't work with netcoreapp2.0 on Mac #3648

@daxian-dbw

Description

@daxian-dbw

This is because HttpClientHandler.ServerCertificateCustomValidationCallback currently doesn't work in netcoreapp2.0 on Mac at all. See the comment in https://github.com/dotnet/corefx/issues/9728 for more information.

Note that we currently have 2 tests failing in nightly run on OSX CI:

Validate Invoke-WebRequest -SkipCertificateCheck
Validate Invoke-RestMethod -SkipCertificateCheck

Error message is:

The handler does not support custom handling of certificates with this combination of libcurl (7.49.1) and its SSL backend ("SecureTransport").

Metadata

Metadata

Assignees

Labels

Issue-BugIssue has been identified as a bug in the productOS-macOSResolution-FixedThe issue is fixed.WG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility module

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions