ISO 15118-20 Plug & Charge asks more of a CSMS than ISO 15118-2 did. The charger needs a second V2G certificate with a different key type, signed by a different chain. The car now proves itself in the TLS handshake with a vehicle certificate, and the charger has to ask your CSMS whether that certificate is revoked while the handshake waits. All of it needs OCPP 2.1.
The trouble is testing it. An ISO 15118-20 car and a charger that speaks it are rarely on a developer’s desk. This guide covers what changes on the OCPP side for -20, with the clauses that say so, and then walks through testing every part of it in Rey, the free browser-based virtual charge point: first against its built-in Demo CSMS, then against your own.
It builds on How to test OCPP Plug & Charge, which covers the parts both editions share: provisioning a charger, Authorize with a contract, and the certificateStatus answers. Read that first if Plug & Charge on OCPP is new to you.
What OCPP 2.1 adds for ISO 15118-20
OCPP 2.0.1 covers ISO 15118-2 only. The OCA application note for Plug & Charge on OCPP 1.6 follows 2.0.1, so it is -2 only too (Plug & Charge on OCPP 1.6 (coming soon) has the details). OCPP 2.1 is the first version that carries ISO 15118-20. For Plug & Charge with a contract already in the car, four additions matter, each new in OCPP 2.1:
| Addition | What it is for | Where in OCPP 2.1 |
|---|---|---|
V2G20Certificate | The certificate type for the charger’s ISO 15118-20 V2G certificate, in SignCertificate and CertificateSigned | CertificateSigningUseEnumType |
SignV2G20Certificate | The TriggerMessage value that asks for that certificate’s CSR | MessageTriggerEnumType, A02.FR.23 |
OEMRootCertificate | A root the charger checks vehicle certificates against, described as the “OEM root certificate for 2-way TLS with EV” | InstallCertificateUseEnumType |
| GetCertificateChainStatus | The charger asks the CSMS whether the car’s vehicle certificate chain is revoked | Use case M07 |
Installing a contract through the CSMS (Get15118EVCertificate) also gains -20 fields (maximumContractCertificateChains, prioritizedEMAIDs, remainingContracts). This guide only touches it in one optional step of the walkthrough.
A few smaller changes matter for -20’s bigger certificates. OCPP 2.1 raises the limit on Authorize.certificate and on InstallCertificate.certificate from 5500 characters in 2.0.1 to 10000, and on GetCertificateStatus’s ocspResult from 5500 to 18000. A P-521 chain is larger than a P-256 one, so check your own field limits too. And SignCertificate gains an optional requestId that the CSMS must copy into the CertificateSigned it sends back (A02.FR.24 and FR.25), plus an optional hashRootCertificate that names the CA to use (A02.FR.27).
What doesn’t change is Authorize. In the OCPP 2.1 sequence for ISO 15118-20 (use case C07), the charger still sends the eMAID with iso15118CertificateHashData, and the CSMS still answers with idTokenInfo and certificateStatus. Your Authorize (coming soon) code stays. What it must now handle is a contract chain on P-521 keys, or on Ed448 if your PKI issues those.
Two charger certificates, two triggers
ISO 15118-20 uses EC P-521 or Ed448 keys, where ISO 15118-2 uses EC P-256. A charger that serves both kinds of car therefore holds two V2G (SECC) certificates. The OCPP 2.1 text says it plainly in use case A02: a charging station that supports ISO 15118-20 “needs to install two SeccLeafCertificates”, and the CSMS sends two TriggerMessages to get them.
The -20 one starts like this:
[2, "tm-20", "TriggerMessage", {
"requestedMessage": "SignV2G20Certificate"
}]
The charger makes a new key pair, keeps the private key, and sends a CSR with the -20 type:
[2, "sc-20", "SignCertificate", {
"csr": "-----BEGIN CERTIFICATE REQUEST-----\nMIICLDCCAY0CAQAw...\n-----END CERTIFICATE REQUEST-----\n",
"certificateType": "V2G20Certificate"
}]
The CSMS answers Accepted, has the CSR signed by the CPO sub-CA of its -20 chain, and returns the chain, leaf first, without the root:
[2, "cs-20", "CertificateSigned", {
"certificateChain": "-----BEGIN CERTIFICATE-----\n...SECC leaf, P-521...\n-----END CERTIFICATE-----\n-----BEGIN CERTIFICATE-----\n...-20 CPO Sub-CA 2...\n-----END CERTIFICATE-----\n-----BEGIN CERTIFICATE-----\n...-20 CPO Sub-CA 1...\n-----END CERTIFICATE-----\n",
"certificateType": "V2G20Certificate"
}]
OCPP 2.1 recommends that the CSMS set certificateType in CertificateSigned to the type the CSR came with (A02.FR.14). If the charger sent a requestId, the CSMS must include it.
P-521 or Ed448? ISO 15118-20 allows both. The certificate policy for the CharIN V2G PKI for ISO 15118-20 (revision 1.1, April 2024) specifies secp521r1 for all keys and certificates, and it won’t support a move to Curve448. So if your certificates come from there, P-521 is the one you will see. Support Ed448 only if your PKI issues it.
The common mistake: signing a -20 CSR with the -2 chain. A CSMS that routes every V2G CSR to the same CA produces a P-521 leaf under the P-256 CPO sub-CA. CertificateSigned is accepted, because the certificate matches the charger’s key. But a -20 car checks the charger against its ISO 15118-20 V2G roots only, so it refuses the chain in the TLS handshake, long before Authorize. Nothing in OCPP reports the failure to your CSMS. Route by certificateType (and by hashRootCertificate when the charger sends one), and check the issuer of what you send back.
The CSR subject: DC=CSO and the SECC ID
The CSR’s subject is where -2 habits break -20 certificates.
- CN is the SECC ID. The OCPP 2.1 A02 scenario sets the common name to the value of
ISO15118Ctrlr.SeccId. ISO 15118-2 PKIs usually expect the charger’s full EVSE ID here, such asDE*REY*E000001. ISO 15118-20 defines the SECC ID itself (Annex C.3): 39 to 255 letters and digits made of a country code, operator ID, the letter S, a controller ID of at least 32 characters and a check digit, such asDE-8AA-S-00003C4D557878675645330967543476-2. An EVSE ID is not one. Use the SECC ID your -20 PKI registered for the charger. - O is the organization: OCPP requires the organization name of the certificate owner (A00.FR.509), and the station’s
OrganizationNamevariable must be set before it can request a certificate. - DC is
CSO(charging station operator) for an ISO 15118-20 SECC certificate, where -2 PKIs useCPO. The CharIN policy for -20 requires a domain component in every certificate, encoded as the last attribute, and tells relying parties to check that it matches the branch:CSOfor an SECC certificate,EVfor a vehicle certificate.
The same policy allows only C, O, OU, CN and DC in a subject, with C first and DC last. A CSR that carries anything else, or puts DC in the wrong place, is the CA’s to reject, and your CSMS only learns that when no CertificateSigned ever arrives. OCPP 2.1 notes this gap itself: the CSMS accepts the CSR before the CA has looked at it, so an operator has to be told when the CA refuses.
One more profile detail for PKI engineers. OCPP strongly recommends against the extended key usage extension for all certificates, citing ISO 15118 compatibility (A00.FR.514). The CharIN profile for -20 does the opposite: id-kp-serverAuth in the SECC certificate and only id-kp-clientAuth in the vehicle certificate (sections 7.1.4.3 and 7.1.8.4). For V2G certificates, follow your -20 PKI’s profile. TLS stacks such as OpenSSL check these purposes.
TLS 1.3, checked from both ends
ISO 15118-2 runs unilateral TLS 1.2: the car checks the charger, never the other way round. ISO 15118-20 requires TLS 1.3 with mutual authentication. The CharIN implementation guide for TLS with ISO 15118 (version 1, April 2026) quotes the cipher suites and signature algorithms from ISO 15118-20 Tables 6 and 8. The rest of the table comes from ISO 15118-20 itself:
| ISO 15118-20 | |
|---|---|
| TLS version | 1.3 ([V2G20-1264]). ISO 15118-20 also allows TLS 1.3 for -2, but CharIN recommends -2 on TLS 1.2 only |
| Cipher suites | TLS_AES_256_GCM_SHA384, TLS_CHACHA20_POLY1305_SHA256 |
| Key exchange groups | secp521r1 and x448 |
| Signature schemes | ecdsa_secp521r1_sha512, ed448 |
| Client certificate | The charger asks for the car’s vehicle certificate |
| OCSP | The charger staples the OCSP responses it holds, fetched earlier with GetCertificateStatus (coming soon) |
| Charger’s trust anchors for the car | V2G root, or a separate vehicle root (an OEM root CA in ISO 15118-20 terms, [V2G20-2331]) |
The groups come from ISO 15118-20 requirements [V2G20-1634] and [V2G20-1637], as listed in ISO 15118-2 vs ISO 15118-20 (coming soon), which covers the rest of the security profile. The CharIN policy for -20 requires the charger to provide all the OCSP responses it has during the handshake, and says it should refresh them at least once a week.
Most of this lives in the charger, not in your CSMS. But the CSMS supplies every input: the -20 V2G certificate, the root the car’s chain leads to, the OCSP responses the charger staples, and the vehicle chain’s revocation status. When a -20 handshake fails, check what the CSMS provisioned first: it is the part you control. The CharIN guide’s field traces show a related case, a charger answering TLS 1.3 with its -2 certificate, which the car aborts. The guide blames TLS libraries left on their defaults, but a charger that never got a -20 certificate ends up in the same place.
The vehicle certificate and its root
In ISO 15118-20 the car presents a vehicle certificate in the TLS handshake. It has nothing to do with billing. The contract certificate still does that, later, in AuthorizationReq. The vehicle certificate only proves to the charger that it is talking to a genuine car.
The charger needs a trust anchor for it. Where that anchor sits depends on the PKI:
- In the CharIN PKI for -20, it is the V2G root. The policy says there “SHALL be no OEM Root CA”; the vehicle CAs are sub-CAs of the V2G root. So the -20 V2G root your CSMS installs as
V2GRootCertificatealready covers CharIN vehicle certificates. - For a separate vehicle root (a carmaker PKI outside the V2G root), OCPP 2.1 adds the
OEMRootCertificatetype. Install the root your vehicle certificates chain to with InstallCertificate and this type.
Watch the words here. This guide, like Rey, calls the root that the car’s vehicle certificate chains to the vehicle root. ISO 15118-20 allows two kinds: the V2G root, or a separate OEM root CA run by the carmaker ([V2G20-2331]), and a public charger keeps room for at least two OEM roots for this check ([V2G20-2353]). That differs from ISO 15118-2, where “OEM root” meant only the root of the OEM provisioning certificates used to install contracts. OCPP 2.1’s OEMRootCertificate installs the separate vehicle root, which Rey’s certificate manager labels Vehicle root. In the CharIN PKI the vehicle CAs sit under the V2G root, so you only need it for vehicle certificates from a separate carmaker PKI.
Revocation of the vehicle chain: GetCertificateChainStatus
ISO 15118-20 requires the charger to check, during the TLS handshake, that no certificate in the car’s vehicle chain is revoked. The OCPP 2.1 use case M07 (“Get Vehicle Certificate Chain Revocation Status”) says so in its description. The charger usually can’t reach an OCSP responder itself, so it asks the CSMS. Here is the request in the shape Rey sends it, one entry per certificate below the root, with the hashes shortened and example addresses:
[2, "gccs-1", "GetCertificateChainStatus", {
"certificateStatusRequests": [
{ "certificateHashData": { "hashAlgorithm": "SHA256", "issuerNameHash": "5e1a07c2", "issuerKeyHash": "c07b9e41", "serialNumber": "4f2a91" },
"source": "OCSP", "urls": ["http://ocsp.example.invalid/vehicle2"] },
{ "certificateHashData": { "hashAlgorithm": "SHA256", "issuerNameHash": "88d3a016", "issuerKeyHash": "1b6fe2d9", "serialNumber": "2c07" },
"source": "OCSP", "urls": ["http://ocsp.example.invalid/vehicle1"] },
{ "certificateHashData": { "hashAlgorithm": "SHA256", "issuerNameHash": "a4f21c77", "issuerKeyHash": "93e0b5aa", "serialNumber": "1d" },
"source": "OCSP", "urls": ["http://ocsp.example.invalid/v2g"] }
]
}]
The CSMS checks each certificate and answers with one entry per certificate:
[3, "gccs-1", {
"certificateStatus": [
{ "certificateHashData": { "hashAlgorithm": "SHA256", "issuerNameHash": "5e1a07c2", "issuerKeyHash": "c07b9e41", "serialNumber": "4f2a91" },
"source": "OCSP", "status": "Revoked", "nextUpdate": "2026-11-24T10:00:00Z" },
{ "certificateHashData": { "hashAlgorithm": "SHA256", "issuerNameHash": "88d3a016", "issuerKeyHash": "1b6fe2d9", "serialNumber": "2c07" },
"source": "OCSP", "status": "Good", "nextUpdate": "2026-11-24T10:00:00Z" },
{ "certificateHashData": { "hashAlgorithm": "SHA256", "issuerNameHash": "a4f21c77", "issuerKeyHash": "93e0b5aa", "serialNumber": "1d" },
"source": "OCSP", "status": "Good", "nextUpdate": "2026-11-24T10:00:00Z" }
]
}]
The rules your CSMS has to follow, from M07:
- Up to four certificates per request, each with a
sourceofOCSPorCRLand one to fiveurls. - OCSP: ask one of the URLs. Use the responder’s verdict (
Good,Revoked,Unknown) orFailedif the request failed (M07.FR.01 to FR.03). - CRL: download the list from one of the URLs.
Revokedif the serial number is on it,Goodif not,Failedif the download failed (FR.04 to FR.07). - Answer every certificate, with its
certificateHashData,source,statusandnextUpdate, all required (FR.08). - Cache: in the M07 scenario the CSMS first checks for cached results less than a week old. The charger should cache your answers for at most a week and not ask again before
nextUpdate(FR.09 and FR.10).
Unlike GetCertificateStatus (coming soon), which relays a signed OCSP response for the charger’s own certificate, this message returns a verdict. The charger trusts your CSMS’s word, so the CSMS is the one that must check the responder’s signature. Speed matters as well: the car is in the middle of a TLS handshake while you answer. Cache.
One edition per session
A car and a charger agree on one protocol per session, in the supportedAppProtocol handshake, and only that protocol’s messages may follow (see ISO 15118-2 vs ISO 15118-20 (coming soon)). The TLS handshake comes even earlier: the CharIN guide points out that today’s start-up sequence gives the car and the charger no way to agree on the TLS version before TLS starts. Under CharIN’s recommended mapping (-2 on TLS 1.2 only, -20 on TLS 1.3 only), a charger that answers in TLS 1.3 has in effect committed to -20. The reverse is the fallback: ISO 15118-20 lets a car or charger also support TLS 1.2 as ISO 15118-2 specifies, for backwards compatibility ([V2G20-2359]), so a car that speaks both editions ends up on -2 at a charger that answers in TLS 1.2: over TLS 1.2 the charger may not select ISO 15118-20 ([V2G20-2356]).
For the CSMS this means two things. A refused -20 contract doesn’t get a second try as a -2 contract in the same session, so don’t wait for one. And Authorize is your one chance to tell the driver why: a clear certificateStatus is what turns “not accepted” into “contract expired”. The driver’s fallback is a card or the app.
Walkthrough: the Demo CSMS on OCPP 2.1
Rey runs the whole -20 sequence above against its built-in Demo CSMS, which has its own demo PKI. Open Rey, then:
-
Connect on 2.1. Pick OCPP version 2.1, keep Demo CSMS and press Connect.
-
Load the car’s certificates. Open EV & contracts in the side rail and press Load demo certificates. You get valid, revoked and expired contracts for ISO 15118-2 (P-256) and for ISO 15118-20 (P-521 and Ed448), the demo car’s vehicle certificate with its two vehicle sub-CAs, and the V2G roots. Rey picks a valid contract for each edition, such as
DE-REY-C20VALID1-4for -20, and the vehicle certificateWREY0DEMO0VEHICLE. Switch the top of the certificate manager to ISO 15118-20 to see what that edition needs: the list The car needs should be all ticks. Leave How it talks to the charger at its defaults: the car Speaks ISO 15118-20, ISO 15118-2 and DIN 70121, over TLS, and asks for the charger’s OCSP status (status_request). -
Provision the charger. On the Demo CSMS card choose Act as CSMS → Set up Plug & Charge (or press Ask the demo CSMS to set this up in the certificate manager). In the conversation you’ll see InstallCertificate for the demo V2G roots, TriggerMessage
SignV2GCertificateand thenSignV2G20Certificate, one SignCertificate for each, withV2GCertificatefor the P-256 key andV2G20Certificatefor the P-521 key, and a CertificateSigned for each. The log notes the CSR subjects, for exampleCN=DE*REY*E000001, O=REY, C=DE, DC=CSOfor the P-521 key. (The demo keeps the EVSE ID as the CN for both keys. A real -20 PKI expects a SECC ID in the -20 format.) Then the charger fetches OCSP for each new certificate with GetCertificateStatus. -
Check what was installed. Open Certificates & security. The ISO 15118-20 group (“EC P-521 · TLS 1.3, mutual: each side checks the other”) shows the -20 chain from its root down to the charger’s certificate. Wait until its certificates show OCSP good: in the next step the charger sends those responses to the car, which asks for them by default.
-
Plug in. Turn the cable on (or press P), then filter the conversation to ISO 15118. You should see these lines, among others:
SDP: the car asks for TLS; the charger answers TLS TLS: the car offers TLS 1.3 (ISO 15118-20) and TLS 1.2 (ISO 15118-2); the charger picks TLS 1.3, since it has an ISO 15118-20 SECC certificate TLS: the charger checked the car's vehicle certificate: trusted via Rey Demo V2G Root -20 TLS: the charger checked the vehicle chain's revocation status with the CSMS (GetCertificateChainStatus, OCSP): 3 certificates, all good TLS 1.3 handshake (OpenSSL): the car offered TLS 1.3 and TLS 1.2; connected with TLS_AES_256_GCM_SHA384, key exchange secp521r1, the charger's EC P-521 certificate, OCSP response stapled TLS 1.3 handshake (OpenSSL): the car's TLS stack accepts the charger's chain TLS 1.3 handshake (OpenSSL): the charger's TLS stack accepts the car's vehicle certificate (mutual TLS) SupportedAppProtocol: the car offers ISO 15118-20, ISO 15118-2, DIN SPEC 70121; the charger picks ISO 15118-20 (OK_SuccessfulNegotiation)The first two lines are SDP agreeing on TLS, then the charger picking TLS 1.3, which decides the edition. The next two are Rey’s step checks. The three lines starting “TLS 1.3 handshake (OpenSSL)” come from a real TLS 1.3 handshake between the virtual car and the charger, run with their real certificates and keys and offering only what -20 allows. It reports what was negotiated and what each side’s TLS stack thought of the other’s chain, so problems like a wrong key usage or a missing sub-CA show up here. SupportedAppProtocol then confirms ISO 15118-20. From there each car-charger exchange is a real EXI message on that TLS 1.3 connection, shown as one plain-language line: the car presents its -20 contract in AuthorizationReq, signed with the contract key, the charger checks the signature and sends Authorize with the eMAID and OCSP data for 3 certificates, and the session starts. The car card in the cockpit shows Talks ISO 15118-20 · TLS 1.3.
Note the line “The car uses only ISO 15118-20 roots (EC P-521 or Ed448) to check the charger”. The demo kit loads the -2 root too, and a -20 car ignores it.

To see an ISO 15118-2 session on the same charger, unplug, untick ISO 15118-20 under Speaks on EV & contracts and plug in again. The car now offers only TLS 1.2, the charger picks it, and the log shows a real TLS 1.2 handshake with
TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256and secp256r1, in which only the charger presents a certificate. SupportedAppProtocol agrees on ISO 15118-2, and the car presents its -2 contract. Tick ISO 15118-20 again before the next step. -
Optional: get a contract from the CSMS. Unplug. On EV & contracts, ISO 15118-20 tab, pick No contract yet: ask for one with the demo car’s P-521 provisioning certificate,
WREY0DEMO0PCID0201, and plug in. After the TLS 1.3 handshake the car sends CertificateInstallationReq, signed with its OEM provisioning key, and the charger forwards it unchanged in Get15118EVCertificate with the -20 schema and, on 2.1,maximumContractCertificateChains. The Demo CSMS plays the contract provider. It has two contracts for every car, so the car asks again while the answer says more contracts remain (on 2.1 the charger copies the CSMS’sremainingContractsinto it), checks each answer, decrypts the contract key that only it can read, and charges with the first contract in the same session. The handbook covers this for -20 and for -2. Pick the valid -20 contract again before the next step. -
Revoke the vehicle certificate. Unplug. On Certificates & security press Revoke the car’s vehicle certificate (demo) (it is also in Act as CSMS as “Revoke the car’s vehicle certificate (-20, OCPP 2.1)”). The Demo CSMS marks the demo vehicle certificate revoked, for your charger only. On EV & contracts, tick Stop where a real car or charger would stop. Plug in again.
The charger sends GetCertificateChainStatus, the Demo CSMS answers Revoked for the vehicle certificate, and the log says:
✗ TLS: the CSMS says WREY0DEMO0VEHICLE in the car's vehicle chain is revoked (GetCertificateChainStatus), so the charger won't accept the vehicle certificate. A real car stops here.
The charger screen shows NOT ACCEPTED with Vehicle cert revoked, and no Authorize goes to the CSMS: the session ended in TLS, as it would with a real car. Rey labels this refusal REY-TLS-008, and its Explain button (on the charger screen, and the ? in the conversation) points you to GetCertificateChainStatus and its reply. With your own CSMS, that is the code to note in a ticket.

Untick strict mode and plug in once more: Rey now warns and carries on to Authorize, so you can still test a CSMS’s contract check with a car the charger would have refused.
To read any of these sessions in Wireshark, choose Export → Capture (pcapng) with the TLS keys before you disconnect. The file carries the TLS 1.3 session keys, so Wireshark decrypts it by itself; without keys gives a file you can share (handbook: Wireshark).
Walkthrough: your own CSMS
Before you connect, set the SECC ID your -20 PKI expects under Configuration → Charger profile (SECC ID (CN), Organization (O)); these fields lock while connected. Rey accepts a SECC ID of up to 64 characters. Then switch the CSMS card to My CSMS, enter your public wss:// address and charge point ID, pick 2.1 and connect. You can change the SECC ID later through ISO15118Ctrlr.SeccId; it applies to the next CSR. By default a 2.1 charger in Rey holds P-256 and P-521 keys; tick Ed448 under Configuration → Charger behaviour if your PKI issues it. The Configuration section of the handbook has the details.
What to send, in order:
- Read the charger’s
ISO15118Ctrlr.SeccIdwith GetVariables, so you know which SECC ID the CSR will carry. - InstallCertificate
V2GRootCertificatewith your -20 V2G root (and your -2 root, if you test both). - InstallCertificate
OEMRootCertificatewith a separate vehicle root, if your vehicle certificates don’t chain to the V2G root. - TriggerMessage
SignV2G20Certificate. Rey answers with one SignCertificate per -20 key type it holds, each withcertificateTypeV2G20Certificate. If it holds no -20 key type, it answers the trigger withRejected. - CertificateSigned for each CSR: the -20 leaf with the -20 CPO sub-CAs,
certificateTypeV2G20Certificate. - Answer the GetCertificateStatus requests that follow for the new chain.
Then, on EV & contracts, drop your -20 test files into the certificate manager: the contract certificate with its MO sub-CAs and private key, the vehicle certificate with its sub-CAs and private key, and the -20 V2G root (PEM or DER), and your separate vehicle root if the vehicle certificate chains to one. Leave the car’s Speaks settings at their defaults, tick Stop where a real car or charger would stop, and plug in. Check the Talks row: if your charger holds only a -2 certificate at that point, the car falls back to ISO 15118-2 over TLS 1.2 and, with no -2 contract loaded, asks for a card or the app. Use test certificates only. They stay in your browser, and Rey’s server holds them only in memory, for the session.
What to check in your CSMS’s answers:
| Check | Where Rey shows it |
|---|---|
| The -20 leaf is signed by the -20 chain | Certificates & security marks a -20 certificate signed by the -2 chain (“signed by the ISO 15118-2 chain”), and the log explains that a -20 car won’t accept it |
| The certificate type matches the key | The log warns when a V2G20Certificate carries a P-256 key |
| The leaf matches the CSR’s key | Rey answers CertificateSigned with Rejected and says why |
| The subject is what your PKI expects | Click the certificate on Certificates & security, or Copy PEM and run openssl x509 -in cert.pem -noout -text |
| OCSP for the -20 chain works | OCSP good on each -20 certificate; otherwise OCSP failed or OCSP response unusable with the reason |
| GetCertificateChainStatus answers every certificate | ”3 certificates, all good”; a warning when your CSMS answers fewer certificates than asked, or answers Unknown or Failed |
| A revoked vehicle certificate stops the session | Have your responder report it revoked: Vehicle cert revoked in strict mode |
| A CSMS without M07 | A CALLERROR (for example NotImplemented) becomes a warning that the status is unknown |
| Authorize handles P-521 contracts | Both fields of your answer, certificateStatus and idTokenInfo.status, as in the general test matrix |
| The handshake itself | The “TLS 1.3 handshake (OpenSSL)” lines; a failed handshake is logged, and in strict mode the screen shows TLS handshake failed |
The Plug & Charge section of the Rey handbook and its Certificates & security section show each screen.
To run these checks as a list, Rey’s Test suite has them as tests on 2.1: the -20 V2G root, the P-521 SECC certificate and its SignV2G20Certificate trigger, an OEMRootCertificate, valid, revoked and expired -20 contracts, GetCertificateChainStatus and -20 contract installation. Your CSMS has to trust Rey’s -20 test contract root, which setup offers to download.
What the bench does not cover
Rey tests the OCPP half of ISO 15118-20 Plug & Charge, and runs the car-to-charger half with real messages between its own virtual car and charger. It doesn’t stand in for a real car, and its limits are worth knowing:
- The cable is in memory. The ISO 15118 messages are real EXI, made with EVerest’s open-source encoder (libcbv2g), on a real TLS 1.3 connection (TLS 1.2 for an ISO 15118-2 session), but both ends run inside Rey. There is no powerline link or SLAC, no real car’s timing, and no conformance verdict.
- Contract installation for -20 outside OCPP 2.1 is outside the standard. OCPP 1.6 and 2.0.1 define Get15118EVCertificate for ISO 15118-2 only. Rey sends the -20 request there anyway, without the 2.1 fields, and the log says it is outside the standard. Those versions also allow at most 5600 characters for
exiResponse. A P-521 answer is about 5900, so the Demo CSMS answersFailed(ResponseTooLarge) there; an Ed448 answer fits. OCPP 2.1 allows 17000. - V2X is a separate topic. Rey’s car can also give power back over ISO 15118-20 (
DC_BPT,AC_BPT), and on 2.1 your CSMS sees NotifyEVChargingNeeds and can allow it and set the power (giving power back in the handbook). This article sticks to Plug & Charge. DER control isn’t in Rey. - OCSP only for the vehicle chain. Rey sends GetCertificateChainStatus with
sourceOCSPfor each certificate that names an OCSP address. It never sendsCRLentries, and it skips certificates without an OCSP address with a warning. - No cache. Rey asks GetCertificateChainStatus on every -20 plug-in, so you see the message each time. A real charger should reuse your answer until
nextUpdate. - No
requestIdorhashRootCertificate. Both are optional in SignCertificate, and Rey doesn’t send them, so your CSMS’s handling of them isn’t tested. - Stapling covers the leaf. When the car asks for it (
status_request), Rey staples the OCSP response for the charger’s own certificate. The sub-CA responses are checked in the step before it. - One edition per plug-in, the one the car and the charger agree on when the car plugs in, so a refused -20 contract ends Plug & Charge for that plug-in, as described above.
On OCPP 1.6 and 2.0.1 you can still tick the -20 key types for a CSMS that signs them there, but Rey marks that as outside the standard, and with no M07 message it notes that the vehicle chain’s revocation status can’t be checked.
The honest summary
Most of what ISO 15118-20 asks of a CSMS is certificate plumbing: a second CSR on a second trigger, signed by a second chain, a root for the car, and a revocation check that has to answer quickly. None of it is hard. All of it fails without saying so: a -20 certificate under the -2 chain installs cleanly and then fails in a TLS handshake your CSMS never sees, and a CSMS without a GetCertificateChainStatus handler leaves the charger unable to make a check ISO 15118-20 requires.
That is why it’s worth testing before the cars arrive, not after. The cars will tell you nothing, except that Plug & Charge didn’t start.