Delete Certificate
Source: OCPP 2.0.1 Part 2 — Specification (Edition 2, 2022-12-15) — Section 1.14 (Messages); Use Case M04 — Delete a specific certificate from a Charging Station (Functional Block M. ISO 15118 CertificateManagement)
Overview
The CSMS sends DeleteCertificateRequest to remove a specific installed certificate from the Charging Station. The target certificate is identified by its hash data (CertificateHashDataType).
Deletion of the Charging Station's own client certificate is not allowed via this message. Deletion of the currently-in-use root certificate is also rejected.
Sequence Diagram
CSMS ──── DeleteCertificateRequest ────▶ Charging Station
(certificateHashData)
CSMS ◀─── DeleteCertificateResponse ──── Charging Station
(status, statusInfo?)
Initiator
CSMS → Charging Station
Fields
| Field Name | Field Type | Card. | Description |
|---|---|---|---|
| certificateHashData | CertificateHashDataType | 1..1 | Required. Identifies the certificate to delete. |
| Field Name | Field Type | Card. | Description |
|---|---|---|---|
| status | DeleteCertificateStatusEnumType | 1..1 | Required. Whether the CS could process the request. |
| statusInfo | StatusInfoType | 0..1 | Optional. Detailed status information. |
CertificateHashDataType
| Field | Type | Card. | Description |
|---|---|---|---|
| hashAlgorithm | HashAlgorithmEnumType | 1..1 | SHA256 / SHA384 / SHA512. |
| issuerNameHash | identifierString [0..128] | 1..1 | Hashed value of the IssuerName. |
| issuerKeyHash | string [0..128] | 1..1 | Hashed value of the issuer's public key. |
| serialNumber | string [0..40] | 1..1 | Serial number of the certificate. |
DeleteCertificateStatusEnumType values
Accepted, Failed, NotFound.
Examples
{
"certificateHashData": {
"hashAlgorithm": "SHA256",
"issuerNameHash": "3d2e6c9f...e1",
"issuerKeyHash": "9aa1b6f3...22",
"serialNumber": "0a1b2c3d4e5f"
}
}{
"status": "Accepted"
}Schema
Source:
schemas/DeleteCertificateRequest.json,schemas/DeleteCertificateResponse.json(OCPP 2.0.1 FINAL)