The RevokeCertificate method revokes a certificate by a specified date.
[VB] void RevokeCertificate(
BSTR strConfig,
BSTR strSerialNumber,
long Reason,
DATE Date
);
[JAVA] void RevokeCertificate(
java.lang.String strConfig,
java.lang.String strSerialNumber,
int Reason,
double Date
);
[C++] HRESULT RevokeCertificate(
BSTR const strConfig, // in
BSTR const strSerialNumber, // in
LONG Reason, // in
DATE Date // in
);
Revocation Reason | Value |
---|---|
CRL_REASON_UNSPECIFIED | 0 |
CRL_REASON_KEY_COMPROMISE | 1 |
CRL_REASON_CA_COMPROMISE | 2 |
CRL_REASON_AFFILIATION_CHANGED | 3 |
CRL_REASON_SUPERSEDED | 4 |
CRL_REASON_CESSATION_OF_OPERATION | 5 |
CRL_REASON_CERTIFICATE_HOLD | 6 |
This method does not return a value.
Windows NT: Requires version 5.0 or later (or version 4.0 with the Windows NT 4.0 Option Pack).
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in certadm.h.
Import Library: Use certidl.lib.