PstAcquirePrivateKey function (certpoleng.h)

Associates the caller's private key with the specified certificate.

Syntax

NTSTATUS PstAcquirePrivateKey(
  [in] PCCERT_CONTEXT pCert
);

Parameters

[in] pCert

The certificate with which to associate the private key.

Return value

If the function succeeds, return STATUS_SUCCESS.

If the function fails, return an NTSTATUS code that indicates the reason it failed.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header certpoleng.h
Library Certpoleng.lib
DLL Certpoleng.dll