Examples/Sample_SSLSettings_RequireCert.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
configuration Sample_SSLSetting_RequireCert
{
    param
    (
        # Target nodes to apply the configuration
        [String[]]$NodeName = 'localhost'
    )

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

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