Gets or sets a key usage check mode for server certificate.
Namespace:
Rebex.Net
Assembly:
Rebex.Networking (in Rebex.Networking.dll)
Syntax
Visual Basic |
---|
Public Property SslStrictKeyUsageValidation As Boolean Get Set |
C# |
---|
public bool SslStrictKeyUsageValidation { get; set; } |
Remarks
Relaxed (default): | Check 'Extended Key Usage' extension (2.5.29.37). If not present, check 'Key Usage' extension (2.5.29.15). |
Strict: | If present, check both 'Extended Key Usage' extension (2.5.29.37) and 'Key Usage' extension (2.5.29.15). |
Extended Key Usage check: | If present, usage must contain ServerAuthentication or AnyPurpouse. |
Key Usage check: | If present, usage must contain KeyAgreement or KeyEncipherment or DigitalSignature. |