The car carries a charging contract and can prove it owns it, so plugging in is all the driver has to do.
In plain words
Think of a passport and a signature.
- The passport is the contract certificate. A company you trust issued it, and it carries your contract number.
- The signature proves the passport is yours. Only your car holds the secret key that can make it.
At the charger, three questions are answered in order:
- Is this a real charger, and a real car? Both show certificates when the private line opens.
- Is this contract real, and is it yours? The charger sends a random number. The car signs it, so an old recording is useless.
- Is it still valid? The charger asks its operator.
Then charging starts. No card, no app.
Four certificates, four jobs
| Certificate | Who holds it | What it proves |
|---|---|---|
| SECC certificate | The charger | "I am a real charger" |
| Vehicle certificate | The car | "I am a real car" |
| Contract certificate | The car | "This contract pays" |
| OEM provisioning certificate | The car | "You may send a contract to this car" |
A frequent mix-up: the vehicle certificate is used to open the private line. The contract certificate comes later, inside it.
What happens, in order
- TLS 1.3: charger and car show certificates
- AuthorizationSetupReq
- Payment options and a random number
- AuthorizationReq: contract and signature
- Authorize: contract ID, certificate data
- Accepted
- AuthorizationRes: OK, Finished
For engineers
- The options are EIM (external identification means: card, app, terminal) and PnC (Plug & Charge).
- The random number is the GenChallenge. The car signs the authorization element that contains it and the contract chain. With secp521r1 the signature is ECDSA with SHA-512.
- The charger does not choose the contract. See who picks.
- The contract number is the eMAID. Over OCPP it travels as an ID token of type eMAID.
- The charger may check the contract chain itself against a mobility operator root, or pass certificate data to its operator for the check.
Limits worth knowing
Plug & Charge needs certificates that chain to roots both sides hold. A car and a charger from different ecosystems may each be correct and still not trust each other.
A worked example
From a session recorded in Rey, a free simulator of a car and a charger:
| Message | Size | What it carries |
|---|---|---|
| AuthorizationSetupRes | 38 bytes | EIM and PnC offered, certificate installation offered, a 16-byte number to sign |
| AuthorizationReq | 2,417 bytes | The signature, the same number, and the contract with its chain |
| AuthorizationRes | 19 bytes | OK, Finished |
The question is tiny, and so is the answer. The proof in the middle is large because it carries a chain of certificates.
Why the random number matters
Imagine someone records your car's signature today and plays it back tomorrow. Without the random number it would work. With it, tomorrow's question is different, so yesterday's answer is worthless.
Three checks that people confuse
- The signature is good. The car holds the key that belongs to this certificate.
- The chain is good. The certificate leads to a root that the checker knows.
- The contract is good. The provider still accepts it today.
A failure in any of the three looks the same to a driver. For the person who has to fix it, they are three different problems.
Questions people ask
Is it the same as Autocharge? No. Autocharge recognises a car by an identifier it sends. Plug & Charge asks the car to prove itself with a signature.
Can someone copy my contract? The certificate is not a secret. The private key is, and it is meant to stay in protected memory in the car.
What if the operator is offline? It depends on the settings. A charger may be able to check the chain itself, but it cannot know the contract's latest status.
Can I still pay by card? Yes, if the charger offers it. It offers the options, and the car or driver chooses.
Try it
In Rey, a free simulator of a car and a charger, load the demo certificates and plug in with the valid contract. Then try the revoked and the expired ones, and read where each one stops.
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.