pub async fn revoke_cert(
_admin: AdminAuth,
__arg1: Path<String>,
__arg2: State<Arc<AppState>>,
__arg3: Json<RevokeCertRequest>,
) -> ResponseExpand description
POST /admin/certs/{serial}/revoke — Revoke a certificate.
Marks the certificate as revoked with the given reason code. The CRL is regenerated to include the revoked certificate.
§Request
{ "reason": 4 }§Reason Codes (RFC 5280 §5.3.1)
| Code | Meaning |
|---|---|
| 0 | unspecified |
| 1 | keyCompromise |
| 2 | cACompromise |
| 3 | affiliationChanged |
| 4 | superseded |
| 5 | cessationOfOperation |
| 6 | certificateHold |
| 9 | privilegeWithdrawn |
| 10 | aACompromise |