The car asks for its contract through any charger that offers the service, using a certificate from the factory. If it holds several contracts, the car picks, not the charger.
In plain words
A new car leaves the factory with an identity but no contract. You sign up with a charging company. The next time you plug in, the car can ask: is there a contract for me? The charger passes the question on, and the sealed answer comes back through it.
The charger cannot read the secret inside. It is locked for that one car.
- CertificateInstallationReq, signed with the factory key
- Get15118EVCertificate (OCPP)
- The contract, encrypted for this car
- CertificateInstallationRes
Work contract or home contract?
-20 lets a car receive more than one contract. It can say how many it wants and which contract numbers come first. The answer tells the car how many remain, so it can ask again.
At the charger, the charger may list the providers it works with. The car compares that list with its own contracts and presents one. Think of a shop with card stickers on the door: you look at the stickers, then you choose a card from your wallet.
The list may be incomplete. A provider that is missing is not always refused, so a car may still try.
For engineers
- The request is signed with the OEM provisioning key. The private key of the new contract is encrypted with AES-GCM using a key agreed through ECDH.
- With Ed448 certificates, key agreement uses X448.
- The car sends MaximumContractCertificateChains, and can send PrioritizedEMAIDs. The answer carries RemainingContractCertificateChains.
- -20 has no separate update message. A contract that is running out is replaced by installing again.
- In OCPP 2.1 the same request carries the -20 schema name and the maximum number of chains. OCPP 2.0.1 defines this exchange for -2.
- The list of providers is SupportedProviders in AuthorizationSetupRes.
A worked example
A recorded installation, with numbers:
| Message | Size |
|---|---|
| CertificateInstallationReq | 2,321 bytes |
| CertificateInstallationRes | 4,426 bytes |
In that recording the demo system had two contracts for the car. It sent one, said that one remained, and the car asked again. OCPP has a limit to how long an answer may be, and a -20 answer with large keys can come close to or exceed what OCPP 2.0.1 allows. That is one more reason -20 and OCPP 2.1 go together.
What has to be in place before
- The car maker put a provisioning certificate into the car.
- The driver signed a contract and gave the provider the car's provisioning ID.
- The provider made the contract available to the service that delivers it.
- The charger's operator can reach that service.
If any of these is missing, the car asks and nobody has an answer.
Questions people ask
Must I install at a charger? No. A car maker can also deliver a contract over the car's own internet connection. The exchange through the charger is one way.
What happens when I sell the car? The contract belongs to you, not to the car, so it should be removed. How depends on the car.
Can the charger read my contract? It sees the certificate, which is public by nature. It cannot read the private key.
How many contracts can a car hold? The standard sets a minimum of one, or space for one. The maximum is up to the maker.
Why does the car pick? It knows the driver's preference. The charger only knows its own partners.
Try it
In Rey, a free simulator of a car and a charger, choose "No contract yet: ask for one" for -20 and plug in. The demo system sends two contracts, and the car charges with the first.
Where this comes from
- ISO 15118-20:2022, read in its final draft (FDIS). Described in our own words.
- OCPP 2.1, Part 2, Edition 2, Open Charge Alliance.
- Sessions recorded in Rey, a charger and car simulator.
The standard is copyrighted. This page explains it and quotes none of it. If you build a product, read the standard itself.
Spotted a mistake, or something unclear? Write to us.