IX509EndorsementKey::RemoveCertificate method (certenroll.h)
Removes an endorsement certificate related to the endorsement key from the key storage provider. You can only call the RemoveCertificate method after the Open method has been successfully called.
Syntax
HRESULT RemoveCertificate(
[in] EncodingType Encoding,
[in] BSTR strCertificate
);
Parameters
[in] Encoding
An EncodingType enumeration value that specifies the type of Unicode-encoding applied to the endorsement certificate. The default value is XCN_CRYPT_STRING_BASE64.
[in] strCertificate
The certificate to remove from the store.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
Only non-manufacturer certificates can be removed from the key storage provider.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | certenroll.h |
DLL | Certenroll.dll |