Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The CheckSignature method verifies that the certificate request has been signed and that the signature is valid.
Syntax
HRESULT CheckSignature(
[in] Pkcs10AllowedSignatureTypes AllowedSignatureTypes
);
Parameters
[in] AllowedSignatureTypes
An Pkcs10AllowedSignatureTypes enumeration value. This can be a bitwise combination of the following values.
Return value
If the function succeeds, the function returns S_OK.
If the function fails, it returns an HRESULT value that indicates the error. Possible values include, but are not limited to, those in the following table. For a list of common error codes, see Common HRESULT Values.
Return code | Description |
---|---|
|
The certificate request has not been signed. |
|
The signature type is not specified by the AllowedSignatureTypes parameter. |
|
The value specified by the AllowedSignatureTypes parameter is not a member of the Pkcs10AllowedSignatureTypes enumeration type. |
Remarks
This method uses the public key to decrypt the signature and compares the signature to a hash of the certificate request.
Requirements
Requirement | Value |
---|---|
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 |