DeleteCertificate
Removes an installed certificate, identified by its hash data.
- Version
- OCPP 2.0.1
- Direction
- CSMS → Charge Point
- Functional block
- Security
Deletion is by hash rather than by name, so the request is unambiguous even when several certificates share a subject.
Request
| Field | Type | Required | Description |
|---|---|---|---|
certificateHashData | CertificateHashDataType | Required | hashAlgorithm, issuerNameHash, issuerKeyHash and serialNumber. |
json
[2, "19223201", "DeleteCertificate", {
"certificateHashData": {
"hashAlgorithm": "SHA256",
"issuerNameHash": "3d8f...",
"issuerKeyHash": "9b21...",
"serialNumber": "0a1b2c3d"
}
}]Response
| Field | Type | Required | Description |
|---|---|---|---|
status | DeleteCertificateStatusEnumType | Required | Result. |
statusInfo | StatusInfoType | Optional | Reason code. |
json
[3, "19223201", {
"status": "Accepted"
}]Values
DeleteCertificateStatusEnumType
| Value | Meaning |
|---|---|
Accepted | Deleted. |
Failed | The station could not delete it. |
NotFound | No certificate matched the hash. |
Implementation notes
Deleting the root that validates your own CSMS certificate disconnects the station permanently. Install the replacement first, confirm with GetInstalledCertificateIds, then delete.
NotFound usually means the certificate was already removed. Treat it as success.