IX509SCEPEnrollment::Initialize method (certenroll.h)
Initialize the instance in preparation for a new request.
Syntax
HRESULT Initialize(
[in] IX509CertificateRequestPkcs10 *pRequest,
[in] BSTR strThumbprint,
[in] EncodingType ThumprintEncoding,
[in] BSTR strServerCertificates,
[in] EncodingType Encoding
);
Parameters
[in] pRequest
An instance of a request that has already been initialized.
[in] strThumbprint
The CA certificate thumbprint.
[in] ThumprintEncoding
The encoding of the CA certificate thumbprint.
[in] strServerCertificates
A PKCS7 request with CA and SCEP RA certificates.
[in] Encoding
The encoding type of the request.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
This method expects an SCEP server signature EA certificate and an SCEP server encryption EA certificate, both signed by the CA certificate.
This method fails if any of the expected certificates is missing, or if the thumbprint doesn't match the CA certificate.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | certenroll.h |
DLL | Certenroll.dll |