Plug and Charge: A Practical Automotive Engineering Guide
Plug and Charge (PnC) is an EV charging authorization approach that uses digital certificates and a supporting public-key infrastructure (PKI) ecosystem to identify a charging contract and authorize a session. The intended user experience is straightforward: connect a compatible vehicle to a compatible charging station and let the configured systems perform the required identification and authorization exchanges.
Behind that experience are several distinct responsibilities: vehicle credential storage, certificate provisioning, trust-chain validation, charging-station communication, contract authorization and backend integration. A successful cryptographic check is not automatically proof that a commercial contract is active, and a successful network connection is not proof that charging has been authorized.
This guide focuses on the engineering boundaries and validation activities that matter when developing or integrating an EVCC, SECC or associated charging ecosystem. The exact message sequence, certificate profiles and PKI roles depend on the applicable ISO 15118 edition and ecosystem rules.
1. What Plug and Charge provides
PnC automates a supported authorization path by using contract-related credentials rather than requiring the driver to manually identify a contract at the charging station for every session.
A typical deployment involves:
- EV: Stores or accesses the contract credential and initiates the vehicle-side communication.
- EVCC: Implements the vehicle-side communication and application behavior.
- SECC: Implements the charging-station-side communication endpoint.
- Contract certificate: Represents contract-related credentials used by the PnC process.
- PKI participants: Issue, provision, validate or manage certificates and trust relationships according to the applicable ecosystem.
- Mobility/contract backend: Supports contract and authorization services as defined by the deployment.
- EVSE controller: Applies charging-station readiness, safety and operating constraints independently of the authorization decision.
The exact names and responsibilities of certificate-provisioning and backend actors vary by ecosystem. Do not assume that every EVSE directly contacts the same backend or that the SECC independently makes every commercial decision.
2. PnC architecture and trust boundaries
The following diagram is conceptual. It shows the major responsibilities, not a mandatory network topology or a complete certificate hierarchy.
Keep these trust boundaries explicit in the system design:
- Credential issuance and provisioning: Which authorized entities issue or deliver the contract credential, and how is the vehicle authenticated during provisioning?
- Vehicle storage: Where is the private key held, which software components can request its use, and how is access controlled?
- EVCC–SECC communication: Which protocol profile and security configuration are selected?
- Certificate validation: Which endpoint validates which certificate, against which trust anchors and validity/status policy?
- Contract authorization: Which service determines whether the contract can be used for the requested session?
- Charging permission: How does the authorization result combine with EVSE readiness, vehicle state and safety constraints?
A useful architecture document identifies the producer and consumer for every interface, the data exchanged, timeout ownership, error propagation, and the diagnostic evidence available at each boundary.
3. A representative PnC session
The following is a functional overview rather than a normative message-by-message sequence. Use the exact sequence and message definitions from the applicable ISO 15118 edition and deployment profile.
An engineering review can organize the session into these stages:
- Communication setup: Establish the required physical/link and network communication.
- Protocol and service selection: Determine the mutually supported protocol and selected authorization service.
- PnC data exchange: Exchange the certificate-related data required by the selected profile.
- Credential validation: Apply the required certificate-chain, validity and trust checks.
- Contract authorization: Apply the configured contract and backend policy.
- Charging permission: Combine authorization with EVSE readiness and vehicle/charger operating constraints.
- Session continuation or rejection: Continue only when the applicable conditions are met; otherwise report a meaningful failure and follow the defined recovery path.
Do not collapse these stages into one Boolean variable named certificate_valid. The software should preserve enough status to distinguish communication, cryptographic validation, backend authorization and charging readiness.
4. Worked example: authorization succeeds cryptographically but the contract is rejected
Consider a test in which the vehicle presents a certificate chain that validates against the configured trust anchors. However, the charging session is not authorized.
A common diagnostic mistake is to assume that certificate-chain validation must have failed. The contract may instead be inactive, unavailable to the authorization service, associated with a different account context, or rejected by a deployment-specific policy.
Investigate the result in stages:
| Stage | Question | Evidence |
|---|---|---|
| Communication | Was the PnC service selected and was the exchange completed? | EVCC/SECC protocol trace and state |
| Certificate parsing | Was the received certificate data parsed successfully? | Parser result and controlled diagnostic status |
| Chain validation | Does the chain build to an allowed trust anchor? | Chain-validation result and trust-store version |
| Time validity | Are the relevant certificates valid at the evaluation time? | Test clock and validity-window result |
| Status policy | Was the required certificate-status/revocation policy satisfied? | Status-check result and source |
| Contract authorization | Did the configured service accept the contract for this session? | Backend result category and correlation ID |
| Charging readiness | Are the EVSE and vehicle ready to proceed? | EVSE, BMS and power-controller status |
The expected outcome in this example is authorization rejection, even though certificate-chain validation succeeded. The test report should identify the failing stage rather than reporting only “PnC failed.â€
Use test credentials, a controlled clock and a non-production backend. Never use production private keys or real customer credentials for negative testing.
5. Certificate roles and lifecycle
PnC is a lifecycle system, not just a certificate check performed once during a charging session. The deployment must define how credentials are issued, provisioned, stored, renewed, replaced and revoked.
The lifecycle may include:
- Initial vehicle enrollment and credential provisioning.
- Secure storage of the associated private key.
- Use of the contract credential during charging authorization.
- Certificate renewal before expiry.
- Trust-anchor and certificate-status information updates.
- Handling of revoked, expired or compromised credentials.
- Contract termination or account changes.
- Vehicle resale, ownership transfer or decommissioning.
The precise certificate types, hierarchy, provisioning protocol, actors and renewal procedures depend on the selected ISO 15118 profile and the applicable PKI ecosystem. Avoid hard-coding a generic certificate hierarchy into application logic.
Private-key handling
The private key must not be treated as an ordinary configuration file. The vehicle architecture should define:
- Approved storage and cryptographic services.
- Which software component is allowed to request private-key operations.
- Access-control and authorization rules.
- Secure provisioning and update paths.
- Protection against extraction, accidental disclosure and unauthorized replacement.
- Diagnostics that reveal useful status without exposing secret material.
A test report may identify certificate subjects, serial numbers or fingerprints where permitted by the project policy, but must never include private keys or secret provisioning data.
6. Certificate validation is not the same as contract authorization
These concepts are related but must remain distinct.
| Concept | What it answers | What it does not prove by itself |
|---|---|---|
| Certificate parsing | Is the credential structurally readable? | That it is trusted or authorized |
| Chain validation | Does the chain satisfy the configured trust policy? | That the contract is commercially active |
| Time validation | Is the certificate within its validity period? | That the credential has not been revoked |
| Status/revocation processing | Does the configured status policy accept the credential? | That the backend will approve this session |
| Contract authorization | Is the contract accepted for this session under the configured policy? | That the vehicle and EVSE are ready to transfer energy |
| Charging readiness | Are local operating and safety conditions satisfied? | That the commercial contract is valid for future sessions |
A successful TLS handshake is also a separate result. TLS protects a communication channel according to its configuration; PnC contract authorization is an application/ecosystem function. Do not treat one as a substitute for the other.
7. Negative testing and fault injection
A valid-certificate test covers only the nominal path. Use a controlled test PKI and define the expected result for each negative condition.
| Test condition | Engineering check |
|---|---|
| Valid chain and active contract | Authorization succeeds under the configured policy |
| Expired certificate | Time-validity policy rejects the credential |
| Not-yet-valid certificate | Time-validity policy rejects the credential |
| Untrusted root | Chain validation fails |
| Missing intermediate or malformed chain | Defined parsing/chain-building failure is reported |
| Revoked credential | Configured status/revocation policy is enforced |
| Wrong contract/account context | Contract authorization does not incorrectly succeed |
| Invalid or unsynchronized clock | Time-dependent validation follows the defined failure/recovery policy |
| Authorization service unavailable | Configured online/offline policy is followed; no unintended authorization occurs |
| Renewal required | Provisioning/renewal workflow behaves as specified |
| Private-key operation unavailable | Secure failure is reported without exposing key material |
| Trust-anchor update | Only authorized trust configuration is accepted |
For every case, record the preconditions, test credential identity (using approved non-secret identifiers), trust-store version, test time, backend response category, EVCC/SECC software baseline and expected state transition.
Do not assume that offline authorization is permitted. The policy must come from the applicable profile, ecosystem and project requirements.
8. Security and privacy engineering
PnC touches vehicle credentials, charging contracts and potentially personal or account-related information. Security review should cover the complete lifecycle rather than only the in-session exchange.
| Area | Review points |
|---|---|
| Private keys | Approved storage, restricted use and protection from disclosure |
| Provisioning | Authenticated, authorized and integrity-protected credential delivery |
| Trust anchors | Controlled installation, update and removal |
| Certificate validity | Correct time source and validity checks |
| Revocation/status | Defined source, availability and failure policy |
| Backend integration | Authentication, authorization, availability and error mapping |
| Diagnostics | No private keys, passwords or unnecessary personal data in logs |
| Ownership transfer | Contract and credential removal/replacement behavior |
| Software update | Controlled changes to cryptographic libraries and trust configuration |
Minimize personal and contract data in traces. Mask identifiers where possible, restrict log access and define retention periods. A cryptographic validation success does not prove that the commercial contract is active, and a backend approval does not override local vehicle or EVSE safety constraints.
9. Failure analysis and troubleshooting
Troubleshoot from the outer communication boundary toward the authorization and charging application. Preserve raw traces before filtering or decoding them.
Is the communication link available?
No -> Inspect connector, link and modem diagnostics.
Yes
|
Is the EVCC-SECC communication session established?
No -> Inspect network, transport and security setup.
Yes
|
Was Plug and Charge selected?
No -> Inspect service negotiation and configuration.
Yes
|
Was certificate data exchanged and parsed?
No -> Inspect protocol trace and parsing diagnostics.
Yes
|
Did certificate validation succeed?
No -> Inspect chain, trust anchors, validity time and status policy.
Yes
|
Did contract authorization succeed?
No -> Inspect backend result, contract context and availability policy.
Yes
|
Are vehicle and EVSE charging conditions satisfied?
No -> Inspect BMS, EVSE readiness, limits and safety state.
Yes
|
Investigate subsequent charging-control behavior.
Keep infrastructure failures separate from product failures. For example:
- A network or transport failure is not a certificate rejection.
- A certificate-chain failure is not automatically a backend outage.
- A backend contract rejection is not a power-stage fault.
- A successful authorization result is not proof that charging can safely start.
Where multiple logs are involved, synchronize clocks or document their offsets. Preserve correlation identifiers and state-transition timestamps so that EVCC, SECC and backend events can be aligned.
10. Software partitioning and interface design
A maintainable implementation separates security-sensitive credential operations from general session control. One possible project-level decomposition is:
- Communication adapter: Exposes link and network status to the protocol stack.
- Protocol/session manager: Controls the selected session and authorization state transitions.
- Certificate service: Provides controlled parsing and validation functions.
- Secure-key service: Performs approved private-key operations without exporting key material.
- Authorization adapter: Interfaces with the configured contract/backend service.
- Vehicle interface: Supplies relevant vehicle state and charging constraints.
- EVSE interface: Supplies charger readiness and operating limits.
- Diagnostic service: Reports stage-specific failures and trace references without leaking secrets.
This is an architectural example, not a mandated ISO software decomposition. Define ownership of retries, timers, error mapping and session reset. Avoid having multiple layers independently retry or clear the same authorization state.
11. Verification strategy
A complete validation plan should include unit, integration, security, interoperability and system-level tests.
| Test level | Focus | Evidence |
|---|---|---|
| Unit | Certificate parsing, time checks, error mapping | Deterministic test vectors and unit-test results |
| Component | Secure-key service and trust-store behavior | Access-control and cryptographic-service evidence |
| Integration | EVCC/SECC exchange and authorization adapter | Timestamped protocol and backend traces |
| Negative | Invalid credentials and backend failures | Expected rejection stage and recovery behavior |
| Security | Key protection, logging and provisioning controls | Security-test evidence and review records |
| Interoperability | Supported EVCC/SECC and ecosystem combinations | Reproducible configuration and session verdict |
| Regression | Previously fixed authorization and lifecycle defects | Repeatable results against the approved baseline |
For every test case, specify preconditions, stimulus, expected state, timeout criteria, diagnostic evidence and pass/fail rules. Link the test to a requirement or applicable profile clause. A successful nominal session alone is not proof of complete PnC conformance or security.
12. Engineering checklist
- Applicable ISO 15118 edition, profile and ecosystem rules are identified.
- EVCC, SECC, PKI and backend responsibilities are documented.
- Certificate issuance, provisioning, renewal and revocation are defined.
- Private-key storage and use are protected by approved mechanisms.
- Trust anchors and certificate-status policy are controlled.
- Certificate validation and contract authorization are reported separately.
- TLS/channel security is not confused with contract authorization.
- Backend outage and offline behavior follow an approved policy.
- Negative tests cover invalid credentials, time, trust and backend conditions.
- Logs avoid private keys and unnecessary personal/contract data.
- Vehicle/EVSE readiness remains an independent charging-permission check.
- Hardware, software, certificate environment and test configuration are archived.
13. Check your understanding
- Why is certificate-chain validation not sufficient to prove that a charging contract is authorized?
- What is the difference between TLS channel security and Plug and Charge contract authorization?
- Which lifecycle activities must be considered after a contract certificate is provisioned?
- Why should a backend-unavailable test be performed using a controlled non-production environment?
- What evidence helps distinguish a PKI failure from a charging-readiness failure?
Related articles
- ISO 15118: A Practical Automotive Engineering Guide
- ISO 15118-20: A Practical Automotive Engineering Guide
- Vehicle-to-Grid (V2G): A Practical Automotive Engineering Guide
- CHAdeMO: A Practical Automotive Engineering Guide
Further reading
- ISO 15118-2:2014 — Network and application protocol requirements
- ISO 15118-20:2022 — Network and application protocol requirements
- ISO — Standards catalogue
- IEC — International Electrotechnical Commission
Use the controlled copy of the applicable standard and the project-specific PKI/ecosystem requirements when implementing or assessing conformance.
