Skip to content

Commit

Permalink
Merge pull request #56 from X-Guardian/patch-2
Browse files Browse the repository at this point in the history
WSManListener: Fix Find-Certificate Verbose Messages
  • Loading branch information
PlagueHO authored Jan 1, 2020
2 parents cdedbb7 + 3747374 commit f7c414a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- WSManDsc
- Added CODE_OF_CONDUCT.md file, and a 'Code of Conduct' section in the
README.md.
- WSManListener
- Fix Find-Certificate Verbose Messages [Issue #49](https://github.com/dsccommunity/WSManDsc/issues/49).

### Security

Expand Down
8 changes: 4 additions & 4 deletions source/DSCResources/DSC_WSManListener/DSC_WSManListener.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ function Find-Certificate
Write-Verbose -Message ( @(
"$($MyInvocation.MyCommand): "
$($script:localizedData.FindCertificateAlternateMessage) `
-f $Issuer, $Subject, $Hostname
-f $Subject, $Issuer, $Hostname
) -join '' )

$certificate = (Get-ChildItem -Path Cert:\localmachine\my | Where-Object -FilterScript {
Expand All @@ -683,7 +683,7 @@ function Find-Certificate
Write-Verbose -Message ( @(
"$($MyInvocation.MyCommand): "
$($script:localizedData.FindCertificateMessage) `
-f $Issuer, $Subject
-f $Subject, $Issuer
) -join '' )

$certificate = Get-ChildItem -Path Cert:\localmachine\my | Where-Object -FilterScript {
Expand Down Expand Up @@ -713,7 +713,7 @@ function Find-Certificate
Write-Verbose -Message ( @(
"$($MyInvocation.MyCommand): "
$($script:localizedData.FindCertificateAlternateMessage) `
-f $Issuer, $Subject, $Hostname
-f $Subject, $Issuer, $Hostname
) -join '' )

$certificate = Get-ChildItem -Path Cert:\localmachine\my | Where-Object -FilterScript {
Expand All @@ -730,7 +730,7 @@ function Find-Certificate
Write-Verbose -Message ( @(
"$($MyInvocation.MyCommand): "
$($script:localizedData.FindCertificateMessage) `
-f $Issuer, $Subject
-f $Subject, $Issuer
) -join '' )

$certificate = Get-ChildItem -Path Cert:\localmachine\my | Where-Object -FilterScript {
Expand Down

0 comments on commit f7c414a

Please sign in to comment.