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

[Bug] DSC_WebSite: CertificateStoreName value is not mathing defined value in the schema #642

Open
webalexeu opened this issue Oct 17, 2024 · 0 comments · May be fixed by #641
Open

[Bug] DSC_WebSite: CertificateStoreName value is not mathing defined value in the schema #642

webalexeu opened this issue Oct 17, 2024 · 0 comments · May be fixed by #641

Comments

@webalexeu
Copy link

Problem description

The value returned is not matching the schema
(This is problematic in the puppet module integration as puppet is enforcing the value returned by DSC)

Verbose logs

(invoke-DscResource @InvokeParams).BindingInfo

BindingInformation    : *:8531:*
CertificateStoreName  : MY
CertificateSubject    :
CertificateThumbprint : 71AD93562316F21F74606F1096B85D66289ED60F
HostName              : *
IPAddress             : *
Port                  : 8443
Protocol              : https
SslFlags              : 0
PSComputerName        : localhost

DSC configuration

# Create the new Website with HTTPS
        WebSite NewWebsite
        {
            Ensure          = 'Present'
            Name            = $WebSiteName
            State           = 'Started'
            PhysicalPath    = $DestinationPath
            BindingInfo     = @(
                DSC_WebBindingInformation
                {
                    Protocol              = 'HTTPS'
                    Port                  = 8443
                    CertificateThumbprint = '71AD93562316F21F74606F1096B85D66289ED60F'
                    CertificateStoreName  = 'MY'
                }
            )
        }

Suggested solution

Pull Request proposed #641

Operating system the target node is running

OsName               : Microsoft Windows Server 2022 Standard
OsOperatingSystemSKU : StandardServerEdition
OsArchitecture       : 64-bit
WindowsVersion       : 2009
WindowsBuildLabEx    : 20348.859.amd64fre.fe_release_svc_prod2.220707-1832
OsLanguage           : en-US
OsMuiLanguages       : {en-US}

PowerShell version and build the target node is running

Name                           Value
----                           -----
PSVersion                      5.1.20348.2652
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.20348.2652
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

WebAdministrationDsc version

Name                 Version Path
----                 ------- ----
WebAdministrationDsc 4.2.0   C:\ProgramData\PuppetLabs\puppet\cache\lib\puppet_x\webadministrationdsc\dsc_resources\WebAdministrationDsc\WebAdministrationDsc.psd1
@webalexeu webalexeu linked a pull request Oct 17, 2024 that will close this issue
9 tasks
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

Successfully merging a pull request may close this issue.

1 participant