DsKraContainerAddCertificate Method

Adds key recovery agent (KRA) certificate to Active Directory.

Definition

Namespace: SysadminsLV.PKI.Management.ActiveDirectory
Assembly: SysadminsLV.PKI.Win (in SysadminsLV.PKI.Win.dll) Version: 4.0.1.0 (4.0.1.0)
C#
public bool AddCertificate(
	X509Certificate2 cert
)

Parameters

cert  X509Certificate2
Key recovery agent certificate to add.

Return Value

Boolean
True if this is a new certificate and no duplicates exist. If certificate entry already exists in internal list, method returns False.

Exceptions

UninitializedObjectExceptioncert parameter is not valid X.509 certificate object.
ArgumentNullExceptioncert parameter is null.

See Also