Click or drag to resize

DsKraContainerAddCertificate Method

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

Namespace:  SysadminsLV.PKI.Management.ActiveDirectory
Assembly:  SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax
public bool AddCertificate(
	X509Certificate2 cert
)

Parameters

cert
Type: System.Security.Cryptography.X509CertificatesX509Certificate2
Key recovery agent certificate to add.

Return Value

Type: Boolean
True if this is a new certificate and no duplicates exist. If certificate entry already exists in internal list, method returns False.
Exceptions
ExceptionCondition
UninitializedObjectExceptioncert parameter is not valid X.509 certificate object.
ArgumentNullExceptioncert parameter is null.
See Also