IOCSPCAConfigurationCollection::CreateCAConfiguration method

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

Syntax

HRESULT CreateCAConfiguration(
  const BSTR           bstrIdentifier,
  VARIANT              varCACert,
  IOCSPCAConfiguration **ppVal
);

Parameters

bstrIdentifier

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

varCACert

An X.509 CA certificate.

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

   
Windows version None supported 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