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 Name | Field Type | Card. | Description |
|---|---|---|---|
| ocspRequestData | OCSPRequestDataType | 1..1 | Required. Indicates the certificate of which the status is requested. |
| Field Name | Field Type | Card. | Description |
|---|---|---|---|
| status | GetCertificateStatusEnumType | 1..1 | Required. Whether the CSMS was able to retrieve the OCSP certificate status. |
| ocspResult | string [0..5500] | 0..1 | Optional. OCSPResponse (RFC 6960). DER-encoded, then Base64-encoded. May be omitted when status is not Accepted. |
| statusInfo | StatusInfoType | 0..1 | Optional. Detailed status information. |
OCSPRequestDataType
| Field | Type | Card. | Description |
|---|---|---|---|
| hashAlgorithm | HashAlgorithmEnumType | 1..1 | SHA256 / SHA384 / SHA512. |
| issuerNameHash | identifierString [0..128] | 1..1 | Hashed value of the IssuerName field of the certificate. |
| 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. |
| responderURL | string [0..512] | 1..1 | URL 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"
}
}{
"status": "Accepted",
"ocspResult": "MIIB1AoBAKCB..."
}Schema
Source:
schemas/GetCertificateStatusRequest.json,schemas/GetCertificateStatusResponse.json(OCPP 2.0.1 FINAL)