IVMVirtualServer::VMRCCreateEncryptionCertificateRequest method

The VMRCCreateEncryptionCertificateRequest method creates a new security certificate request.

Syntax

HRESULT VMRCCreateEncryptionCertificateRequest(
  [in]  BSTR distinguishedName,
  [in]  long keyLength,
  [out] BSTR *request
);

Parameters

distinguishedName [in]

The distinguished name of the host computer.

keyLength [in]

The key length in bits.

request [out]

The Base-64 encoded security certificate request.

Return value

This method supports standard return values, as well as the following. For information on Virtual Server specific return values not listed below, see HRESULT Codes Specific to the Virtual Server.

Return code Description
S_OK
The operation was successful.
E_POINTER
distinguishedName or request is NULL.
E_INVALIDARG
distinguishedName or keyLength is invalid.
DISP_E_EXCEPTION
An unexpected error occurred.

Remarks

This method creates a request for a new security certificate.

Requirements

Product
Microsoft Virtual Server 2005 onWindows Server 2003
Download
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003
Header
VsComInterfaces.h

See also

IVMVirtualServer