Skip to content

SslSettings

dscbot edited this page Jan 3, 2023 · 2 revisions

SslSettings

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 SslSettings 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_SslSettings_RequireCert
{
    param
    (
        # Target nodes to apply the configuration
        [String[]] $NodeName = 'localhost'
    )

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

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