Skip to main content

revoke_cert

Function revoke_cert 

Source
pub async fn revoke_cert(
    _admin: AdminAuth,
    __arg1: Path<String>,
    __arg2: State<Arc<AppState>>,
    __arg3: Json<RevokeCertRequest>,
) -> Response
Expand 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)

CodeMeaning
0unspecified
1keyCompromise
2cACompromise
3affiliationChanged
4superseded
5cessationOfOperation
6certificateHold
9privilegeWithdrawn
10aACompromise