DsRootCaContainerAddCertificate Method |
Adds CA certificate to RootCA entry in 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
)
Public Function AddCertificate (
cert As X509Certificate2
) As Boolean
public:
bool AddCertificate(
X509Certificate2^ cert
)
member AddCertificate :
cert : X509Certificate2 -> bool
Parameters
- cert
- Type: System.Security.Cryptography.X509CertificatesX509Certificate2
Root CA certificate to add.
Return Value
Type:
BooleanTrue if this is a new certificate and no duplicates exist. If certificate entry
already exists in internal list, method returns
False.
Exceptions Exception | Condition |
---|
UninitializedObjectException | cert parameter is not valid X.509 certificate object.
|
ArgumentNullException | cert parameter is null.
|
See Also