Skip to content

Self Signed CA support in Invoke-WebRequest and Invoke-RestMethod #27099

@nebula-it

Description

@nebula-it

Summary of the new feature / enhancement

Currently using a custom CA cert when calling an http endpoint via either of these commands is a huge PITA. Which something like curl is as simple as curl --cacert ./cert. This is especially hard when running pwsh scripts in containers etc.

Powershell should add a parameter to both Invoke-WebRequest and Invoke-RestMethod, that accepts the CA cert like -CACertificate <path to cert file>

Proposed technical implementation details (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugNeeds-TriageThe issue is new and needs to be triaged by a work group.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions