ICEnroll4::PrivateKeyArchiveCertificate property

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

The PrivateKeyArchiveCertificate property sets or retrieves the certificate that is used to archive a private key with a PKCS #7 or Certificate Management over CMS (CMC) request.

If this property is not null, the private key is encrypted based on the specified certificate and added to the request as an unauthenticated attribute. This property was first defined in the ICEnroll4 interface.

This property is read/write.

Syntax


HRESULT put_PrivateKeyArchiveCertificate(
  [in]   BSTR bstrCert
);

HRESULT get_PrivateKeyArchiveCertificate(
  [out]  BSTR *pbstrCert
);

Property value

A string that contains the certificate that is used to archive a private key with a PKCS #7 or CMC request.

Error codes

If the property access methods put_PrivateKeyArchiveCertificate and get_PrivateKeyArchiveCertificate succeed, they return S_OK.

Any other HRESULT value indicates that the call failed.

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_ICEnroll4 is defined as c1f1188a-2eb5-4a80-841b-7e729a356d90

 

 

Community Additions

ADD
Show:
© 2014 Microsoft