You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Move certificateCommon.psm1 to a Common Area and Replace Self-Signed Cert Valid for All tests #4598
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.
Activity
iSazonov commentedon Aug 21, 2017
Aditya Patwardhan (@adityapatwardhan) Could you please comment the suggestion?
iSazonov commentedon Aug 21, 2017
If we want one (two) reusable certificate(s) we should document their properties (usages) by means of comments in the module.
markekraus commentedon Aug 21, 2017
The comments should probably include the following (at minimum):
markekraus commentedon Oct 1, 2018
Closed by #7875