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.

Rendering diagram...

Keep these trust boundaries explicit in the system design:

  1. Credential issuance and provisioning: Which authorized entities issue or deliver the contract credential, and how is the vehicle authenticated during provisioning?
  2. Vehicle storage: Where is the private key held, which software components can request its use, and how is access controlled?
  3. EVCC–SECC communication: Which protocol profile and security configuration are selected?
  4. Certificate validation: Which endpoint validates which certificate, against which trust anchors and validity/status policy?
  5. Contract authorization: Which service determines whether the contract can be used for the requested session?
  6. 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.

Rendering diagram...

An engineering review can organize the session into these stages:

  1. Communication setup: Establish the required physical/link and network communication.
  2. Protocol and service selection: Determine the mutually supported protocol and selected authorization service.
  3. PnC data exchange: Exchange the certificate-related data required by the selected profile.
  4. Credential validation: Apply the required certificate-chain, validity and trust checks.
  5. Contract authorization: Apply the configured contract and backend policy.
  6. Charging permission: Combine authorization with EVSE readiness and vehicle/charger operating constraints.
  7. 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:

StageQuestionEvidence
CommunicationWas the PnC service selected and was the exchange completed?EVCC/SECC protocol trace and state
Certificate parsingWas the received certificate data parsed successfully?Parser result and controlled diagnostic status
Chain validationDoes the chain build to an allowed trust anchor?Chain-validation result and trust-store version
Time validityAre the relevant certificates valid at the evaluation time?Test clock and validity-window result
Status policyWas the required certificate-status/revocation policy satisfied?Status-check result and source
Contract authorizationDid the configured service accept the contract for this session?Backend result category and correlation ID
Charging readinessAre 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.

ConceptWhat it answersWhat it does not prove by itself
Certificate parsingIs the credential structurally readable?That it is trusted or authorized
Chain validationDoes the chain satisfy the configured trust policy?That the contract is commercially active
Time validationIs the certificate within its validity period?That the credential has not been revoked
Status/revocation processingDoes the configured status policy accept the credential?That the backend will approve this session
Contract authorizationIs the contract accepted for this session under the configured policy?That the vehicle and EVSE are ready to transfer energy
Charging readinessAre 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 conditionEngineering check
Valid chain and active contractAuthorization succeeds under the configured policy
Expired certificateTime-validity policy rejects the credential
Not-yet-valid certificateTime-validity policy rejects the credential
Untrusted rootChain validation fails
Missing intermediate or malformed chainDefined parsing/chain-building failure is reported
Revoked credentialConfigured status/revocation policy is enforced
Wrong contract/account contextContract authorization does not incorrectly succeed
Invalid or unsynchronized clockTime-dependent validation follows the defined failure/recovery policy
Authorization service unavailableConfigured online/offline policy is followed; no unintended authorization occurs
Renewal requiredProvisioning/renewal workflow behaves as specified
Private-key operation unavailableSecure failure is reported without exposing key material
Trust-anchor updateOnly 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.

AreaReview points
Private keysApproved storage, restricted use and protection from disclosure
ProvisioningAuthenticated, authorized and integrity-protected credential delivery
Trust anchorsControlled installation, update and removal
Certificate validityCorrect time source and validity checks
Revocation/statusDefined source, availability and failure policy
Backend integrationAuthentication, authorization, availability and error mapping
DiagnosticsNo private keys, passwords or unnecessary personal data in logs
Ownership transferContract and credential removal/replacement behavior
Software updateControlled 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 levelFocusEvidence
UnitCertificate parsing, time checks, error mappingDeterministic test vectors and unit-test results
ComponentSecure-key service and trust-store behaviorAccess-control and cryptographic-service evidence
IntegrationEVCC/SECC exchange and authorization adapterTimestamped protocol and backend traces
NegativeInvalid credentials and backend failuresExpected rejection stage and recovery behavior
SecurityKey protection, logging and provisioning controlsSecurity-test evidence and review records
InteroperabilitySupported EVCC/SECC and ecosystem combinationsReproducible configuration and session verdict
RegressionPreviously fixed authorization and lifecycle defectsRepeatable 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

  1. Why is certificate-chain validation not sufficient to prove that a charging contract is authorized?
  2. What is the difference between TLS channel security and Plug and Charge contract authorization?
  3. Which lifecycle activities must be considered after a contract certificate is provisioned?
  4. Why should a backend-unavailable test be performed using a controlled non-production environment?
  5. What evidence helps distinguish a PKI failure from a charging-readiness failure?

Related articles

Further reading

Use the controlled copy of the applicable standard and the project-specific PKI/ecosystem requirements when implementing or assessing conformance.