Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Find-Certificate from CertificateDsc => DscResource.Common Public Functions #100

Closed
hollanjs opened this issue Jan 31, 2023 · 0 comments · Fixed by #101
Closed

Add Find-Certificate from CertificateDsc => DscResource.Common Public Functions #100

hollanjs opened this issue Jan 31, 2023 · 0 comments · Fixed by #101
Assignees
Labels
enhancement The issue is an enhancement request.

Comments

@hollanjs
Copy link
Contributor

Problem description

Move Find-Certificate Function from CertificateDsc.Common.psm1 to DscResource.Common was created in the CertificateDsc module under Issue #272. It was determined that this function may also better server other modules that require obtaining references to certificates like SharePointDsc, WebAdministrationDsc, etc.

This function is used to obtain a reference to a certificate(s) by multiple filters, including, but not limited to: FriendlyName, Thumbprint, Issuer, Key Usage, etc.

Verbose logs

N/A

How to reproduce

N/A

Expected behavior

N/A

Current behavior

> Find-Certificate -Thumbprint "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
VERBOSE: 

   PSParentPath: Microsoft.PowerShell.Security\Certificate::LocalMachine\My

Thumbprint                                Subject              EnhancedKeyUsageList
----------                                -------              --------------------
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX  CN=My Certifica…     Server Authentication

Suggested solution

Add to DscResource.Common under Public functions; Remove from CertificateDsc after DscResource.Common changes have been merged.

Operating system the target node is running

N/A

PowerShell version and build the target node is running

N/A

Module version used

Name               Version
----               -------
DscResource.Common 0.14.0
@johlju johlju added enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community. labels Feb 6, 2023
@johlju johlju added in progress The issue is being actively worked on by someone. and removed help wanted The issue is up for grabs for anyone in the community. labels Apr 6, 2023
@johlju johlju removed the in progress The issue is being actively worked on by someone. label Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement The issue is an enhancement request.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants