Skip to content
Documentation Menu

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 NameField TypeCard.Description
certificateHashDataCertificateHashDataType1..1Required. Identifies the certificate to delete.

CertificateHashDataType

FieldTypeCard.Description
hashAlgorithmHashAlgorithmEnumType1..1SHA256 / SHA384 / SHA512.
issuerNameHashidentifierString [0..128]1..1Hashed value of the IssuerName.
issuerKeyHashstring [0..128]1..1Hashed value of the issuer's public key.
serialNumberstring [0..40]1..1Serial number of the certificate.

DeleteCertificateStatusEnumType values

Accepted, Failed, NotFound.

Examples

{
  "certificateHashData": {
    "hashAlgorithm": "SHA256",
    "issuerNameHash": "3d2e6c9f...e1",
    "issuerKeyHash": "9aa1b6f3...22",
    "serialNumber": "0a1b2c3d4e5f"
  }
}

Schema

Source: schemas/DeleteCertificateRequest.json, schemas/DeleteCertificateResponse.json (OCPP 2.0.1 FINAL)

Request schema (JSON Schema)
Response schema (JSON Schema)