X509AuthorityKeyIdentifierExtension(X509Certificate2, AuthorityKeyIdentifierType, Boolean) Constructor

Initializes a new instance of X509AuthorityKeyIdentifierExtension class from an issuer certificate, extension generation flags an a value that identifies whether the extension is critical.

Definition

Namespace: SysadminsLV.PKI.Cryptography.X509Certificates
Assembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
C#
public X509AuthorityKeyIdentifierExtension(
	X509Certificate2 issuer,
	AuthorityKeyIdentifierType type,
	bool critical
)

Parameters

issuer  X509Certificate2
Issuer certificate which is used to construct the AKI extension.
type  AuthorityKeyIdentifierType
Indicates which issuer components are included in the AKI extension. If the value is zero (None), then default KeyIdentifier component will be included.
critical  Boolean
True if the extension is critical; otherwise, False.

Remarks

If flags parameter contains AlternativeNames and issuer certificate does not contain Subject Alternative Names (SAN) extension, AlternativeNames flags is ignored. If AlternativeNames is the only flag, and SAN extension is missing, only KeyIdentifier component will be included.

Exceptions

ArgumentNullExceptionissuer parameter is null.

See Also