CATemplateAdd Method

Adds certificate template to issue by a specified Certification Authority server. The method do not writes newly assigned templates to Certification Authority.

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 Add(
	CertificateTemplate template
)

Parameters

template  CertificateTemplate
An CertificateTemplate object to add.

Return Value

Boolean
True if certificate template is added; otherwise False.

Remarks

This method returns False in the following circumstances:
  • Current CA server already contains specified certificate template in the issuance list.
  • Specified certificate template is not supported by this CA version.
If the method returns True, a IsModified property is set to True.

Exceptions

ArgumentNullExceptionThe template parameter is null reference.
UninitializedObjectExceptionThe object in the template parameter is not initialized.

See Also