Create extended (enhanced) key usage extension (2.5.29.37).

Namespace:  Rebex.Security.Certificates
Assembly:  Rebex.Common (in Rebex.Common.dll)

Syntax

Visual Basic
Public Shared Function EnhancedKeyUsage ( _
	critical As Boolean, _
	ParamArray usages As String() _
) As CertificateExtension
C#
public static CertificateExtension EnhancedKeyUsage(
	bool critical,
	params string[] usages
)

Parameters

critical
Type: System..::..Boolean
Specifies whether this extension is considered critical (not-critical extensions may be ignored by servers that don't support them).
usages
Type: array<System..::..String>[]()[][]
Key usage OIDs.

Return Value

An extension object.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also