IX509CertificateRequestCmc::put_EncryptionAlgorithm method (certenroll.h)

The EncryptionAlgorithm property specifies or retrieves an object identifier (OID) of the algorithm used to encrypt the private key to be archived. This property is web enabled for both input and output.

This property is read/write.

Syntax

HRESULT put_EncryptionAlgorithm(
  IObjectId *pValue
);

Parameters

pValue

Return value

None

Remarks

When you request that a certification authority (CA) archive your private key, you must retrieve an exchange certificate from the CA and use the public key contained in that certificate to encrypt the private key that you are submitting for archival. The EncryptionAlgorithm property identifies the algorithm used to encrypt your key.

This property is related to the following properties:

You must set this property, if at all, before calling the Encode method, but you must initialize the CMC request object before calling the property. For more information, see the following topics:

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header certenroll.h
DLL CertEnroll.dll

See also

IX509CertificateRequestCmc