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
If the subject contains the full X500 path, in Get-TargetResource this will result in it trying to find a Certificate with Subject "CN=CN=SomeSubject,O=Or,C=Other,S=etc".
Verbose logs showing the problem
Suggested solution to the issue
Use the same fix as in Test- and Set-TargetResource:
# If the Subject does not contain a full X500 path, construct just the CNif (($Subject.split('=').count) -eq1)
{
$Subject="CN=$Subject"
}
The DSC configuration that is used to reproduce the issue (as detailed as possible)
The operating system the target node is running
Version and build of PowerShell the target node is running
5.1
Version of the DSC module that was used ('dev' if using current dev branch)
dev
Registering this bug for tracking, this bug was discovered during work on PR #209 .
The text was updated successfully, but these errors were encountered:
Details of the scenario you tried and the problem that is occurring
In Get-TargetResource the following code is used:
If the subject contains the full X500 path, in Get-TargetResource this will result in it trying to find a Certificate with Subject "CN=CN=SomeSubject,O=Or,C=Other,S=etc".
Verbose logs showing the problem
Suggested solution to the issue
Use the same fix as in Test- and Set-TargetResource:
The DSC configuration that is used to reproduce the issue (as detailed as possible)
The operating system the target node is running
Version and build of PowerShell the target node is running
5.1
Version of the DSC module that was used ('dev' if using current dev branch)
dev
Registering this bug for tracking, this bug was discovered during work on PR #209 .
The text was updated successfully, but these errors were encountered: