CertificateAuthority(String, String) Constructor

Note: This API is now obsolete.
Initializes a new instance of the CertificateAuthority class

Definition

Namespace: PKI.CertificateServices
Assembly: SysadminsLV.PKI.Win (in SysadminsLV.PKI.Win.dll) Version: 4.0.1.0 (4.0.1.0)
C#
[ObsoleteAttribute("Deprecated. Use 'Connect(String)' static method instead.", 
	true)]
public CertificateAuthority(
	string computerName,
	string name
)

Parameters

computerName  String
Specifies the computer name where Certificate Services are installed.
name  String
Specifies the common name of the Certification Authority that is installed on the computer specified in the computerName parameter.

Remarks

This constructor allows to connect to a CA server if it can be contacted at least via RPC/DCOM.

The default behavior is to retrieve registry information via remote registry functions. If the connection is unsuccessful, the code falls back to RPC/DCOM connections (by using ICertAdmin2 COM interface) to get registry data.

Exceptions

ArgumentNullExceptionEither computerName or name parameter is null or empty.
ServerUnavailableExceptionThe server could not be contacted via both methods: remote registry and RPC/DCOM transport.

See Also