Skip to content

OSX Https certificate callbacks don't work #2290

Open
@mconnew

Description

@mconnew

There was a change in .Net Core 2.0 for HttpClient on OSX which disabled using certificate validation callbacks. As WCF always sets a callback, all https requests will fail on OSX. We can add some workarounds to WCF to enable some scenarios. For OSX only, we need to have the following behaviors for each of the possible X509CertificateValidationMode values:

X509CertificateValidationMode Behavior
None Use the special callback handler HttpClientHandler.DangerousAcceptAnyServerCertificateValidator
PeerTrust Throw PlatformNotSupportedException. I think we already do for other reasons
ChainTrust Set no callback as the default behavior is chain trust
PeerOrChainTrust Throw PlatformNotSupportedException. I think we already do for other reasons
Custom Throw PlatformNotSupportedException

Metadata

Metadata

Labels

BacklogLegitimate tasks of lower priority not in current dev schedule.infrastructureIssues related to the build, packaging, testing or related areas.test bugTest issues that need fixing.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions