Skip to content

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

Closed

Description

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

Activity

  1. iSazonov commented on Aug 21, 2017

    @iSazonov
    Collaborator

    Aditya Patwardhan (@adityapatwardhan) Could you please comment the suggestion?

  2. iSazonov commented on Aug 21, 2017

    @iSazonov
    Collaborator

    If we want one (two) reusable certificate(s) we should document their properties (usages) by means of comments in the module.

  3. markekraus commented on Aug 21, 2017

    @markekraus
    ContributorAuthor

    The comments should probably include the following (at minimum):

    • Subject
    • Thumbprint
    • NotBefore
    • NotAfter
    • Key Usages (including Extended Key Usages)
  4. markekraus commented on Oct 1, 2018

    @markekraus
    ContributorAuthor

    Closed by #7875

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

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