Skip to content

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

Closed

Description

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").

Activity

  1. SteveL-MSFT commented on Apr 26, 2017

    @SteveL-MSFT
    Member

    Joey Aiello (@joeyaiello) we should add this to Known Issues

  2. added this to the milestone on May 17, 2017
  3. joeyaiello commented on May 17, 2017

    @joeyaiello
    Contributor

    Dongbo Wang (@daxian-dbw) it looks like dotnet/corefx#19709 would solve our problem as well. Could you validate that?

  4. stephentoub commented on May 23, 2017

    @stephentoub
    Contributor

    Please let us know if dotnet/corefx#19941 doesn't address this need. I believe it should.

  5. iSazonov commented on Jun 14, 2017

    @iSazonov
    Collaborator

    Dongbo Wang (@daxian-dbw) Is the Issue fixed?

  6. daxian-dbw commented on Jun 14, 2017

    @daxian-dbw
    MemberAuthor

    Yes, it's fixed by #3887

  7. daxian-dbw commented on Jun 15, 2017

    @daxian-dbw
    MemberAuthor

    We are moving back to .NET Core 2.0.0-preview1 via PR #4026 due to regressions in the latest .NET Core 2.0.0-preview2 (dotnet/corefx#21095). So re-open this bug.

  8. iSazonov commented on Jun 28, 2017

    @iSazonov
    Collaborator

    Dongbo Wang (@daxian-dbw) It seems CoreFX was fixed and we can move to new version.

  9. daxian-dbw commented on Jun 28, 2017

    @daxian-dbw
    MemberAuthor

    Ilya (@iSazonov) I would love to, but the 2.0.0-preview3 .NET CLI is broken: https://github.com/dotnet/cli/issues/7013

  10. iSazonov commented on Jun 28, 2017

    @iSazonov
    Collaborator

    😄 Again?! It looks we near release candidate.

  11. daxian-dbw commented on Jun 28, 2017

    @daxian-dbw
    MemberAuthor

    Ilya (@iSazonov) I'm planning to use preview2 CLI and explicitly specify the RuntimeFrameworkVersion to be preview3 packages. Maybe this is good in the long run so that we don't need to change the CLI we are using when we want to move to later version of .NET Core.

  12. iSazonov commented on Jun 29, 2017

    @iSazonov
    Collaborator

    I believe it is good for us. Will this affect the use of PowerShell Core SDK by third-party developers (for binary modules)?

  13. daxian-dbw commented on Jun 30, 2017

    @daxian-dbw
    MemberAuthor

    This issue is fixed by #4144

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Issue-BugIssue has been identified as a bug in the productOS-macOSResolution-FixedThe issue is fixed.WG-Cmdletsgeneral cmdlet issues

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions