diff --git a/CHANGELOG.md b/CHANGELOG.md index 2017f48..da34c6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/source/DSCResources/DSC_WSManListener/DSC_WSManListener.psm1 b/source/DSCResources/DSC_WSManListener/DSC_WSManListener.psm1 index b1e4929..18d4e35 100644 --- a/source/DSCResources/DSC_WSManListener/DSC_WSManListener.psm1 +++ b/source/DSCResources/DSC_WSManListener/DSC_WSManListener.psm1 @@ -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 { @@ -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 { @@ -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 { @@ -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 {