Skip to content

xSslSettings

Johan Ljunggren edited this page Dec 6, 2023 · 2 revisions

xSslSettings

Important

This resource has been renamed in the latest release, see SslSettings. Bug fixes and new functionality will only be added to the renamed resource.

Parameters

Parameter Attribute DataType Description Allowed Values
Name Key String Name of website in which to modify the SSL Settings
Bindings Required StringArray[] The Bindings in which to modify for the website ``, Ssl, `SslNegotiateCert`, `SslRequireCert`, `Ssl128`
Ensure Write String Whether the bindings should be present or absent Present, Absent

Description

The xSslSettings DSC resource is used to...

Requirements

  • Target machine must be running Windows Server 2012 R2 or later.

Known issues

All issues are not listed here, see here for all open issues.

Examples

Example 1

configuration Sample_xSslSettings_RequireCert
{
    param
    (
        # Target nodes to apply the configuration
        [String[]] $NodeName = 'localhost'
    )

    # Import the module that defines custom resources
    Import-DscResource -Module xWebAdministration

    Node $NodeName
    {
        xSslSettings SiteDefaults
        {
            Ensure   = 'Present'
            Name     = 'contoso.com'
            Bindings = @('Ssl', 'SslNegotiateCert', 'SslRequireCert')
        }
    }
}