Share via


WSManSessionOptions.CertCNCheck Property

 

Gets or sets the flag that determines whether the client should validate that the certificate common name (CN) of the server match the hostname of the server.

Namespace:   Microsoft.Management.Infrastructure.Options
Assembly:  Microsoft.Management.Infrastructure (in Microsoft.Management.Infrastructure.dll)

Syntax

public bool CertCNCheck { get; set; }
public:
property bool CertCNCheck {
    bool get();
    void set(bool value);
}
member CertCNCheck : bool with get, set
Public Property CertCNCheck As Boolean

Property Value

Type: System.Boolean

true to check the certificate CN value for validity; otherwise false.

See Also

WSManSessionOptions Class
Microsoft.Management.Infrastructure.Options Namespace

Return to top