Skip to content

Move certificateCommon.psm1 to a Common Area and Replace Self-Signed Cert Valid for All tests #4598

@markekraus

Description

@markekraus

certificateCommon.psm1 contains a self signed certificate used for tests in the Microsoft.PowerShell.Security. Other modules will require certificates so this test module should be moved to a common area accessible to all tests.

Additionally, the certificate in New-GoodCertificate is issued for only the Key Encipherment, Data Encipherment, and Document Encryption key usages. This key cannot be used for tests such as certificate authentication with Invoke-WebRequest/Invoke-RestMethod. A new self-signed certificate should be issued that includes key usage for all tests that may require it to prevent the need for separate certificates and functions for each key requirement.

For more details see #4546

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.WG-Quality-Testissues in a test or in test infrastructure

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions