Skip to content
Documentation Menu

Get Certificate Status

Source: OCPP 2.0.1 Part 2 — Specification (Edition 2, 2022-12-15) — Section 1.18 (Messages); Use Case M06 — Get V2G Charging Station Certificate status (Functional Block M. ISO 15118 CertificateManagement)

Overview

The Charging Station sends GetCertificateStatusRequest to ask the CSMS for the OCSP status of an ISO 15118 / V2G-related certificate. This is typically used during EV authorization with contract certificates (PnC), where the CS needs to verify that a certificate has not been revoked.

The CSMS performs the OCSP check (or proxies it to the relevant OCSP responder) and returns the DER-encoded, then Base64-encoded OCSPResponse (RFC 6960) inside ocspResult.

Sequence Diagram

Charging Station  ──── GetCertificateStatusRequest ────▶  CSMS
                       (ocspRequestData)
                                                          OCSP lookup
Charging Station  ◀─── GetCertificateStatusResponse ────  CSMS
                       (status, ocspResult?)

Initiator

Charging Station → CSMS

Fields

Field NameField TypeCard.Description
ocspRequestDataOCSPRequestDataType1..1Required. Indicates the certificate of which the status is requested.

OCSPRequestDataType

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

GetCertificateStatusEnumType values

  • Accepted — Successfully retrieved the OCSP status.
  • Failed — Failed to retrieve the OCSP status.

Examples

{
  "ocspRequestData": {
    "hashAlgorithm": "SHA256",
    "issuerNameHash": "3d2e6c9f...e1",
    "issuerKeyHash": "9aa1b6f3...22",
    "serialNumber": "0a1b2c3d4e5f",
    "responderURL": "http://ocsp.example.com/v2g"
  }
}

Schema

Source: schemas/GetCertificateStatusRequest.json, schemas/GetCertificateStatusResponse.json (OCPP 2.0.1 FINAL)

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