Writes certificate record to the FIM CM database.
Namespace: Microsoft.Clm.Provision
Assembly: Microsoft.Clm.Provision (in microsoft.clm.provision.dll)

Usage

Visual Basic
Dim caId As Byte
Dim certificate As Byte()
Dim certificateTemplateOid As String
Dim userGuid As Guid
Dim archived As Boolean
Dim returnValue As Integer

returnValue = CertificateServerOperations.WriteCertificateData(caId, certificate, certificateTemplateOid, userGuid, archived)

Syntax

Visual Basic
Public Shared Function WriteCertificateData ( _
		caId As Byte, _
		certificate As Byte(), _
		certificateTemplateOid As String, _
		userGuid As Guid, _
		archived As Boolean _
) As Integer
C#
public static int WriteCertificateData (
		byte caId,
		byte[] certificate,
		string certificateTemplateOid,
		Guid userGuid,
		bool archived
)
C++
public:
static int WriteCertificateData (
		unsigned char caId, 
		array<unsigned char>^ certificate, 
		String^ certificateTemplateOid, 
		Guid userGuid, 
		bool archived
)
J#
public static int WriteCertificateData (
		byte caId, 
		byte[] certificate, 
		String certificateTemplateOid, 
		Guid userGuid, 
		boolean archived
)
JScript
public static function WriteCertificateData (
		caId : byte, 
		certificate : byte[], 
		certificateTemplateOid : String, 
		userGuid : Guid, 
		archived : boolean
) : int

Parameters

caId

Id of the CA that issued the certificate.

certificate

The issued certificate.

certificateTemplateOid

OID of the certificate template.

userGuid

The Active Directory GUID of the subscriber.

archived

A Boolean value that indicates if the private key is archived.

Return Value

Returns Int32, which represents the unique persistent id of the certificate record.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows 2008 x64 Edition

Target Platforms

Windows XP SP3, Windows Vista SP1+, Windows 7, Windows Server 2008, Windows Server 2008 R2

See Also