This documentation is archived and is not being maintained.
X509KeyUsageFlags Enumeration
Visual Studio 2010
Defines how the certificate key can be used. If this value is not defined, the key can be used for any purpose.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
Namespace: System.Security.Cryptography.X509CertificatesAssembly: System (in System.dll)
| Member name | Description | |
|---|---|---|
| None | No key usage parameters. | |
| EncipherOnly | The key can be used for encryption only. | |
| CrlSign | The key can be used to sign a certificate revocation list (CRL). | |
| KeyCertSign | The key can be used to sign certificates. | |
| KeyAgreement | The key can be used to determine key agreement, such as a key created using the Diffie-Hellman key agreement algorithm. | |
| DataEncipherment | The key can be used for data encryption. | |
| KeyEncipherment | The key can be used for key encryption. | |
| NonRepudiation | The key can be used for authentication. | |
| DigitalSignature | The key can be used as a digital signature. | |
| DecipherOnly | The key can be used for decryption only. |
This class is an implementation of a commonly used extension that is mapped by default to the CryptoConfig file. When the Extensions property of the X509Certificate2 class is invoked, this class can be used directly.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: