DsCDPContainerAddCrl Method |
Adds new certificate revocation list 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 AddCrl(
X509CRL2 crl,
string hostName = null
)
Public Function AddCrl (
crl As X509CRL2,
Optional hostName As String = Nothing
) As Boolean
public:
bool AddCrl(
X509CRL2^ crl,
String^ hostName = nullptr
)
member AddCrl :
crl : X509CRL2 *
?hostName : string
(* Defaults:
let _hostName = defaultArg hostName null
*)
-> bool
Parameters
- crl
- Type: System.Security.Cryptography.X509CertificatesX509CRL2
Specifies a CRL to publish in Active Directory. - hostName (Optional)
- Type: SystemString
Specifies host name of CA server that issued the CRL. This parameter is optional and can be omitted if
CRL includes Published CRL Locations CRL extension. If specified, this parameter takes
precedence over Published CRL Locations extension value.
Return Value
Type:
Boolean
This method always returns
True.
Exceptions Exception | Condition |
---|
ArgumentNullException | crl parameter is null.
|
ArgumentException |
There is no enough information to determine exact CRL publication location in Active Directory.
|
See Also