Certificate Object : KeyUsage Property |
Visual Basic |
---|
Public Property KeyUsage( _ ByVal Usage As KeyUsageConstants _ ) As Boolean |
Value | Description |
---|---|
usageAll | Used for the KeyUsageSelect property, selects all Certificates in the Store. |
usageCertSign | Certificate can be used for Certificate Signing. |
usageClientAuthentication | Certificate can be used for Client Authentication. |
usageCodeSigning | Certificate can be used for Code Signing. |
usageCrlSign | Certificate can be used for Encipherment. |
usageDataEncipherment | Certificate can be used for Data Encipherment. |
usageDigitalSignature | Certificate can be used for Digital Signatures. |
usageEmailProtection | Certificate can be used for Email Protection. |
usageIPSecEndSystem | Certificate can be used for IPSec End System. |
usageIPSecTunnel | Certificate can be used for IPSec Tunneling. |
usageIPSecUser | Certificate can be used for IPSec Users. |
usageKeyAgreement | Certificate can be used for Key Agreement. |
usageKeyEncipherment | Certificate can be used for Key Encipherment. |
usageNone | Certificate has no usage flag. |
usageNonRepudiation | Certificate can be used prevent Repudiation. |
usageOfflineCrlSign | Certificate can be used for CRL Signing. |
usageServerAuthentication | Certificate can be used for Server Authentication. |
usageTimeStampSigning | Certificate can be used for Time Stamp signing. |
Private Function IsUsedForServerAuth(Certificate As Certificate) As Boolean If Certificate.KeyUsage(usageServerAuthentication) Then IsUsedForServerAuth = True Else IsUsedForServerAuth = False End If End Function