KRASetInfo Method

Updates KRA configuration by writing KRA certificates to Certification Authority. The method writes all certificates contained in Certificate property.

Definition

Namespace: PKI.CertificateServices
Assembly: SysadminsLV.PKI.Win (in SysadminsLV.PKI.Win.dll) Version: 4.0.1.0 (4.0.1.0)
C#
public bool SetInfo(
	bool restart
)

Parameters

restart  Boolean
Indicates whether to restart certificate services to immediately apply changes. Updated settings has no effect until CA service is restarted.

Return Value

Boolean
True if configuration was changed. If an object was not modified since it was instantiated, configuration is not updated and the method returns False.

Remarks

This method do not check whether the certificates in Certificate property are valid. The caller is responsible to check if the certificates are time-valid, trusted and not revoked.

Exceptions

UnauthorizedAccessException The caller do not have sufficient permissions to make changes in the CA configuration.
ServerUnavailableException The target CA server could not be contacted via RPC/DCOM transport.

See Also