Expand Minimize

IEnroll4::createFilePKCS10WStr method

[This method is no longer available for use as of Windows Server 2008 and Windows Vista.]

The createFilePKCS10WStr method creates a base64-encoded PKCS #10 certificate request and saves it in a file. This method was first defined in the IEnroll interface.

This method differs from the createPKCS10WStr method only in saving the base64-encoded PKCS #10 certificate request to the file specified by the wszPKCS10FileName parameter.

Syntax


HRESULT createFilePKCS10WStr(
  [in]  LPCWSTR DNName,
  [in]  LPCWSTR Usage,
  [in]  LPCWSTR wszPKCS10FileName
);

Parameters

DNName [in]

The distinguished name (DN) of the entity for which the request is being made. DNName must follow the X.500 naming convention. For example, "CN=User, O=Microsoft". If a two-letter prefix does not exist, an object identifier (OID) may be provided instead.

Usage [in]

An OID that describes the purpose of the certificate being generated, for example, individual or commercial Authenticode certificate, or client authentication. You can also specify multiple OIDs separated by a comma.

The OID is passed through to the PKCS #10 request. The control does not examine the OID.

wszPKCS10FileName [in]

The name of the file in which the base64-encoded PKCS #10 is saved. The contents of this file may be submitted to a certification authority for processing.

Remarks

By default, the Microsoft Base Cryptographic Provider is used, and a unique signature key is created.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

End of client support

Windows XP

End of server support

Windows Server 2003

Header

Xenroll.h

Library

Uuid.lib

DLL

Xenroll.dll

IID

IID_IEnroll4 is defined as f8053fe5-78f4-448f-a0db-41d61b73446b

See also

IEnroll4

 

 

Community Additions

ADD
Show:
© 2014 Microsoft