Set-IisSslFlags: Create parameter sets to accurately reflect what flags are allowed to be set simultaneously.

Issue #25 resolved
Aaron Jensen
repo owner created an issue

{{{

!powershell

[CmdletBinding(SupportsShouldProcess=$true,DefaultParameterSetName='IgnoreClientCertificates')]
param(
    [Parameter(Mandatory=$true)]
    [string]
    # The website whose SSL flags should be modifed.
    $SiteName,

    [string]
    # The path to the folder/virtual directory/application under the website whose SSL flags should be set.
    $Path = '',

    [Parameter(ParameterSetName='IgnoreClientCertificates')]
    [Parameter(ParameterSetName='AcceptClientCertificates')]
    [Switch]
    # Should SSL be required?
    $RequireSsl,

    [Parameter(ParameterSetName='AcceptClientCertificates')]
    [Switch]
    # Should client certificates be accepted?
    $AcceptClientCertificates,

    [Parameter(ParameterSetName='RequireClientCertificates')]
    [Switch]
    # Should client certificates be required?  This also turns on the `RequiresSsl` flag.
    $RequireClientCertificates,

    [Switch]
    # Requires 128-bit SSL.
    $Enable128BitSsl
)

}}}

Comments (1)

  1. Aaron Jensen reporter

    Fix issue #25: Set-IisSslFlags: Create parameter sets to accurately reflect what flags are allowed to be set simultaneously.

    • Renamed `Set-IisSslFlags` to `Enable-IisSsl` to better reflect what it does.
    • Created parameter sets around client certificate settings so you can't configure them incorrectly.

    10e6f506beb0

  2. Log in to comment