IOCSPCAConfigurationCollection::CreateCAConfiguration method (certadm.h)

The CreateCAConfiguration method creates a new certification authority (CA) configuration and adds it to the configuration set.

Syntax

HRESULT CreateCAConfiguration(
  [in]  const BSTR           bstrIdentifier,
  [in]  VARIANT              varCACert,
  [out] IOCSPCAConfiguration **ppVal
);

Parameters

[in] bstrIdentifier

A string that contains a name for the new IOCSPCAConfiguration object.

[in] varCACert

An X.509 CA certificate.

[out] ppVal

The address of a pointer to an IOCSPCAConfiguration interface for the newly created object.

Return value

C++

If the method succeeds, it returns S_OK.

If the method fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.

VB

An IOCSPCAConfiguration interface for the newly created object.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008 Datacenter, Windows Server 2008 Enterprise [desktop apps only]
Target Platform Windows
Header certadm.h (include Certsrv.h)
Library Certadm.lib
DLL Certadm.dll

See also

IOCSPCAConfigurationCollection