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

WebAdministrationDsc 4.2.1 bug WebSite/DSC_WebBindingInformation/CertificateSubject -multi-line cert won't work #646

Open
quillypowers opened this issue Jan 7, 2025 · 0 comments

Comments

@quillypowers
Copy link

quillypowers commented Jan 7, 2025

Problem description

In version 4.1.0 (and previous) I could specify my bindings to use a cert like below by just setting:
CertificateSubject ='CN=My.Snazzy.cert.com' with a certificate that looks like below and everything was fine.
SUBJECT:
CN = My.Snazzy.cert.com
O = Some place
S = VA
C = US
But in 4.2.0 I get an error that it cannot find the certificate because it evaluates *most, but not all of the subject
CN=My.Snazzy.cert.com, O=Some place

Verbose logs

I don't really have time to pull all this, it just cannot find the cert by subject due to additional lines in the cert subject.  If I use a cert that has nothing suffixed to it or is just "CN = My.Snazzy.cert.com", it still works fine.

DSC configuration

SslCert          = "CN=My.Snazzy.cert.com"

DSC_WebBindingInformation 
            {
                Protocol              = 'HTTPS'
                Port                  = 443
                CertificateSubject    = $Node.SslCert
                CertificateStoreName  = 'MY'
                IPAddress             = $IpBinding
            }

Suggested solution

Roll back cert subject compare piece

Operating system the target node is running

Windows Server 2019

PowerShell version and build the target node is running

5.1

WebAdministrationDsc version

4.2.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant