ISO 15118 over SSH
Version 0.2, Concept paper, draft for discussion, 2026-11-28 CC-BY-SA 4.0 · OpenChargingTechnology/Whitepapers · intended reference implementations: Vanaheimr/Hermod (SSH stack), OpenChargingCloud/WWCP_ISO15118 (EXI codec, session state machines, SECC and EVCC), OpenChargingCloud/ISO15118ConformanceTests (tests)
ISO 15118 protects the link between a vehicle and a charging station with TLS: optionally with TLS 1.2 in ISO 15118-2, mandatorily with TLS 1.3 in ISO 15118-20. The vehicle authenticates the station by a certificate chain that ends in a V2G root it carries, and checks the chain's validity against a clock it may not have. Where both sides belong to the V2G PKI, this works. A bus depot, a wallbox at home, a fleet of delivery vans and their chargers, a test bench, a V2G pilot and a laboratory usually do not: they run TLS with a test PKI, with certificate checks switched off, or without TLS at all.
SSH solves the same problem with less, as it does for OCPP in OCPP over SSH: a host key the vehicle pins, a key pair per vehicle where the vehicle is to be recognised, no clock, and algorithms that are negotiated rather than fixed by an edition of a standard. This paper proposes how an SECC offers ISO 15118 over SSH instead of TLS, unchanged above the transport:
- An SSH server in place of the SECC's TLS server, on the same link-local IPv6 address and found by the same SECC Discovery Protocol (SDP), with one new value of its security field.
- One subsystem,
iso15118@open.charging.cloud, on an ordinary SSHsessionchannel. It carries the V2GTP frames that would otherwise be TLS application data, byte for byte, starting with theSupportedAppProtocolReq. No new framing, no new handshake: SDP selects the transport, SupportedAppProtocol selects DIN SPEC 70121, ISO 15118-2 or ISO 15118-20, as today. - The station is authenticated by its host key: pinned, signed by an SSH CA, or an X.509 SECC certificate carried in SSH (RFC 6187) for stations that keep the V2G PKI.
- The vehicle is anonymous or authenticated by its key, as the deployment needs. A key that the station knows can stand in for External Identification Means (EIM): Autocharge done with cryptography instead of a MAC address.
- Further channels of the same connection for what a vehicle may need besides charging: authenticated time, and value-added services without routing the vehicle into the station's network.
Whether there should be one subsystem or one per part of ISO 15118 was the first question of this paper; chapter 3 discusses it, and one subsystem was decided.
Status: a concept for discussion. The binding is not implemented yet; how the SECCs in the field answer the proposed SDP value was measured on 2026-11-28 (section 4.1). Two questions were decided that day (chapter 13): one subsystem, and pairing by QR code for private stations; the others are open. The subsystem name and the SDP value are private proposals; ISO 15118 itself requires TLS where this paper uses SSH, and a session over SSH is therefore not a conformant ISO 15118 session (section 6.5).
Contents
- Motivation
- Design
- One subsystem or several
- Discovery
- The session
- Identity and trust
- Algorithms
- Sharing the SSH connection
- An SECC that is not in the station
- Configuration
- Security considerations
- Implementation outline
- Questions for discussion
- Relation to other white papers
1. Motivation
1.1 What TLS does on the V2G link today
| DIN SPEC 70121 | ISO 15118-2 | ISO 15118-20 | |
|---|---|---|---|
| Transport security | none | TLS 1.2, or none (SDP 0x10) |
TLS 1.3, always |
| Cipher suites | - | TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256 |
TLS_AES_256_GCM_SHA384, TLS_CHACHA20_POLY1305_SHA256 ([V2G20-2458], [V2G20-2459]) |
| Key exchange groups | - | secp256r1 | secp521r1, x448 ([V2G20-1634], [V2G20-1637]) |
| Station authenticated by | nothing | SECC certificate, chain to a V2G root | SECC certificate, chain to a V2G root |
| Vehicle authenticated by | nothing | nothing on the transport | a vehicle certificate, where the EVCC presents one |
| Correct clock needed | no | yes, in the vehicle | yes, in the vehicle |
Above the transport, Plug & Charge signs and verifies at the application layer: the contract
certificate chain, the signed AuthorizationReq, the signed meter receipt, the signed sales
tariffs and price schedules. None of this depends on the transport; what depends on it is that the
challenge the vehicle signs comes from the station it is plugged into, and that nobody on the link
reads or changes the messages.
1.2 Where it hurts
- The certificate names no station. An SECC certificate says "an SECC of some operator whose sub-CA chains to this V2G root". It does not say "the station this cable is plugged into"; there is no name to check it against, only a link-local address. What binds the session to the cable is SLAC, not TLS. TLS on the V2G link proves membership in a PKI, not identity.
- Which roots does the vehicle carry? There is more than one V2G PKI ecosystem. A station whose certificate chains to a root the vehicle does not hold gets no ISO 15118-20 session at all, and an ISO 15118-2 session only without TLS. In the field, a large share of ISO 15118-2 EIM sessions has always run in plain TCP.
- The clock. The vehicle checks notBefore and notAfter of the station's chain. A vehicle that has been parked in an underground garage for weeks, or whose clock comes from the very backend it has no connection to yet, checks against a time it cannot trust.
- Private deployments have no V2G PKI. A depot operator who owns both the buses and the chargers, a household that owns the car and the wallbox, a test bench, a V2G pilot with ten known vehicles: all of them would have to operate or rent a PKI that is designed for the public market, to authenticate peers they already know.
- The algorithms are fixed by the edition. ISO 15118-20 pins two cipher suites, two groups and
two signature algorithms; ISO 15118-2 pins secp256r1 and AES-128-CBC. Post-quantum key exchange,
a newer curve or a deprecated one are changes of the standard, decided once per edition. SSH
negotiates its algorithms in every handshake, and a post-quantum hybrid key exchange
(
mlkem768x25519-sha256) is the default of OpenSSH today. - Recognising the vehicle. Autocharge identifies the vehicle by its EVCCID, the MAC address of its PLC modem, which anyone can read and copy. ISO 15118-20 can authenticate the vehicle by a certificate, but only one from the OEM's PKI, which a depot or a household cannot issue.
1.3 What SSH brings
- Bare public keys. A host key has no validity period and no name. It is pinned by its SHA-256 fingerprint, which a vehicle can be given on a label, by its fleet management or at pairing.
- Client keys as the normal case. A vehicle that is to be recognised signs in with a key pair made in the vehicle, whose private key never leaves it. A station holds one line per vehicle; withdrawing access means deleting that line.
- Anonymity as the normal case, too. A vehicle that is not to be recognised signs in with the
method
none, and the station learns nothing it would not learn over TLS. - No clock for pinned keys and for SSH certificates without expiry.
- Trust models side by side. A pin, an SSH CA and, where the V2G PKI is to stay, an X.509 certificate in SSH (RFC 6187), chosen per deployment rather than per edition.
- Negotiated algorithms, including a post-quantum hybrid key exchange today (chapter 7).
- Channels. One connection carries the ISO 15118 session and, where the station offers them, time and value-added services (chapter 8), each confined to what it may reach.
- No identity on the wire. The vehicle's login and key are exchanged inside the encrypted SSH transport, unlike a TLS 1.2 client certificate.
1.4 Where it is meant for
| Scenario | Station authenticated by | Vehicle authenticated by |
|---|---|---|
| Depots and fleets: buses, trucks, delivery vans and the operator's own chargers | the operator's SSH host CA | the operator's SSH user CA, or a key per vehicle |
| Home and workplace: one wallbox, a few known cars | a host key pinned from the station's QR code (section 6.6) | a key enrolled in the same pairing |
| V2G pilots with a known set of vehicles and stations | pin or SSH CA | key per vehicle |
| Test benches, laboratories, conformance tests, simulators | pin | key, or none |
| An SECC outside the station (chapter 9) | the host key of the remote SECC | as above |
| Public charging | an X.509 SECC certificate in SSH (RFC 6187), or not at all | none; Plug & Charge at the application layer, as today |
Public charging is the last row on purpose. Where the V2G PKI is available on both sides, TLS remains the interoperable choice, and this paper does not try to replace it there.
1.5 Non-goals
- No change of the messages. Every EXI document, every V2GTP payload type and every state machine of DIN SPEC 70121, ISO 15118-2 and ISO 15118-20 stays as it is. A session's message processing does not know which transport its bytes came over, except where a rule of the standard asks about the transport (section 6.5).
- No change of SLAC, nor of SDP beyond one value (chapter 4).
- No replacement of Plug & Charge. Contract certificates, their installation and their signatures live at the application layer and stay there.
- No TLS inside SSH, and no SSH inside TLS.
- No new cryptography. Everything cryptographic is SSH's own (RFC 4251 to RFC 4254).
2. Design
2.1 Layers
EXI document SupportedAppProtocolReq, SessionSetupReq, ... (unchanged)
│
V2GTP frame 01 FE · payload type · length · EXI (unchanged)
│
subsystem "iso15118@open.charging.cloud" on a "session" channel (RFC 4254, section 6.5)
│
SSH connection protocol channels, flow control (RFC 4254)
SSH user authentication "none", or the vehicle's public key (RFC 4252)
SSH transport host key, key exchange, encryption (RFC 4253)
│
TCP to the address and port of the SDP response (unchanged)
IPv6 link-local on the PLC, wireless or 10BASE-T1S link after SLAC (unchanged)
Compared with TLS, the SSH channel takes exactly the place of the TLS record layer: a reliable, ordered, encrypted and authenticated byte stream in each direction. V2GTP already frames that stream, with an 8-byte header that carries the payload type and the length. So, unlike OCPP over SSH, which needs frames of its own because a WebSocket had them, this binding needs none: the channel carries the bytes a TLS connection would carry as application data, and nothing else.
2.2 Decisions and rejected alternatives
| Alternative | Proposal | Why |
|---|---|---|
Port forwarding (direct-tcpip) to the SECC's plain TCP port |
rejected | The SECC behind the forward sees a connection from localhost and no identity; a vehicle login that may forward may forward anywhere. The authentication of the vehicle would not reach the session. |
exec of a fixed command |
rejected | It mixes the protocol name with a command line of the server and is harder to confine than a subsystem. |
A channel type of its own instead of session plus subsystem |
rejected | Generic SSH clients and libraries open subsystems, rarely custom channel types, and OpenSSH cannot hand a custom channel type to an external program (appendix B). |
| A framing protocol with a HELLO and WELCOME, as for OCPP | rejected | V2GTP is the framing, and SupportedAppProtocol is the handshake. A second negotiation inside the channel would only be a second place to disagree. |
| TLS inside the SSH channel | rejected | Two transports, two trust models, two sets of algorithms, and the PKI problem of section 1.2 unchanged. |
| V2GTP frames, unchanged, in a subsystem channel | proposed | The stack above the transport stays as it is. The SECC accepts a stream from an SSH channel where it accepted one from a TLS listener. |
3. One subsystem or several
3.1 What has to be negotiated
Three things are chosen before the first SessionSetupReq, at three layers:
| What | Chosen by | Today |
|---|---|---|
| the transport: TLS, plain TCP, or SSH | SDP, its security field | 0x00 TLS, 0x10 plain TCP |
| the protocol and its version: DIN SPEC 70121, ISO 15118-2, ISO 15118-20 | SupportedAppProtocol, by namespace and priority | urn:din:70121:2012:MsgDef, urn:iso:15118:2:2013:MsgDef, and for -20 one namespace per energy transfer service |
| for ISO 15118-20, the service: AC, DC, WPT, ACDP, and their bidirectional variants | SupportedAppProtocol, again by namespace | urn:iso:std:iso:15118:-20:AC, …:DC, …:WPT, …:ACDP |
A subsystem name could take over part of the second and third rows. That is the question.
3.2 Option A: one subsystem for all parts
iso15118@open.charging.cloud carries any session that SupportedAppProtocol can start: DIN SPEC
70121, ISO 15118-2 and ISO 15118-20. The vehicle always opens the same name and sends its
SupportedAppProtocolReq as its first frame, as it would over TLS.
3.3 Option B: one subsystem per part
din70121@open.charging.cloud, iso15118-2@open.charging.cloud and
iso15118-20@open.charging.cloud. The vehicle opens the part it wants to speak.
- SupportedAppProtocol does not go away. ISO 15118-20 chooses its energy transfer service in it, and every part carries its schema version in its namespace. Option B would keep SupportedAppProtocol inside each subsystem and add a rule that it may only select namespaces of that part.
- SSH has no list of subsystems. A server cannot announce which subsystems it offers. A vehicle
that prefers ISO 15118-20 and falls back to ISO 15118-2 asks for one name, receives
SSH_MSG_CHANNEL_FAILURE, and asks for the next, on the same channel or a new one. Each attempt costs a round trip, and the order of attempts is a second priority list beside the one in SupportedAppProtocol.
3.4 Option C: one subsystem per namespace
One name per SupportedAppProtocol namespace (iso15118-20-dc@…, iso15118-20-ac@…, …) would
replace SupportedAppProtocol entirely. Rejected: it changes every state machine, which would no
longer start with SupportedAppProtocol, and the list of names grows with every new service
(AC_DER_IEC, AC_DER_SAE, …) and every schema version.
3.5 Comparison
| A: one subsystem | B: one per part | |
|---|---|---|
| Change of the session stack | none: a stream from a channel instead of a TLS stream | SupportedAppProtocol restricted per subsystem; the state machines learn the subsystem name |
Round trips until the first SessionSetupReq |
one subsystem request | one per part tried |
| Where the version is chosen | in SupportedAppProtocol, as today | in the subsystem name and in SupportedAppProtocol, which must agree |
| Routing to different implementations | the server reads the SupportedAppProtocolReq and hands the stream on, as EVerest's IsoMux routes between its ISO 15118-20 and its DIN/-2 stacks today |
the SSH server routes by name, e.g. sshd starts a different program per subsystem |
| Confinement per part ("this login may speak ISO 15118-20 only") | an access rule on the namespaces SupportedAppProtocol may select (section 6.2) | an access rule on subsystem names, which every SSH server has |
| The transport rule of ISO 15118-20 (section 6.5) | applied in SupportedAppProtocol, as for TLS | applied in SupportedAppProtocol, as for TLS |
| Behind OpenSSH (appendix B) | one helper that speaks all parts, or reads SupportedAppProtocol | one helper per part, each a plain relay |
3.6 Decision
Option A: one subsystem, iso15118@open.charging.cloud, for every part (decided 2026-11-28).
- The stack does not change. The strongest argument for SSH on this link is that nothing above the transport has to know. Option B would reach into SupportedAppProtocol and into every state machine for a choice that SupportedAppProtocol already makes in one round trip.
- One priority list. The vehicle states its preferences once, in SupportedAppProtocol, with the semantics every ISO 15118 implementation already has.
- What option B gives is reachable without it. Routing by part is what a multiplexer does that reads the first V2GTP frame, and confinement by part is an access rule on namespaces. Both live in the server, not on the wire.
- No version in the name. As for
ocpp@, the name carries no version: SupportedAppProtocol chooses it. An incompatible change of the binding itself, which is not foreseen, would get a new name.
What would have spoken for option B is a deployment in which separate programs serve separate parts behind OpenSSH, and no program can be put in front of them that reads SupportedAppProtocol.
3.7 The subsystem
- Name.
iso15118@open.charging.cloud. Names without an@are reserved for assignment through IANA; private extensions usename@domain, where the domain is controlled by whoever defines the name (RFC 4251, section 6; RFC 4250, section 4.6.1). - DIN SPEC 70121 included. It has no transport security of its own, starts with the same
SupportedAppProtocol, and gains from SSH what ISO 15118-2 gains. A name that says
iso15118and carries DIN SPEC 70121 is a small inaccuracy, accepted for one name instead of two. - Opening it. The EVCC opens a
sessionchannel and sends asubsystemrequest with the name (RFC 4254, section 6.5), with want reply set. A server that does not offer the subsystem to this login answersSSH_MSG_CHANNEL_FAILURE, and the EVCC ends the connection. - One session per channel, one channel per connection. An SECC serves one vehicle per EVSE, and
accepts at most one
iso15118@channel per SSH connection at a time. A second request while one is open is refused. - Registration. The name stays private until a second, independent implementation exists. Then
iso15118would be registered in the IANA registry Connection Protocol Subsystem Names, which needs an Expert Review since RFC 9519 and no RFC.
4. Discovery
4.1 A new value of the SDP security field
The EVCC finds the SECC by SDP: it multicasts an SDP_Request (V2GTP payload type 0x9000) whose
first octet states the security it wants, and the SECC answers with an SDP_Response (0x9001)
carrying its link-local address, its port, the security it offers and the transport protocol.
| Value | Meaning | Defined by |
|---|---|---|
0x00 |
TLS | ISO 15118-2, ISO 15118-20 |
0x10 |
no transport security | ISO 15118-2; not permitted for ISO 15118-20 |
0x20 |
SSH, iso15118@open.charging.cloud |
this paper, proposed |
The EVCC asks with
0x20where it is configured to speak SSH, with the transport field0x00(TCP).The SECC answers per request. It answers a request for
0x20with0x20and the port of its SSH server where it offers SSH, and with what it offers otherwise, as today. A request for0x00or0x10is answered as today; an SECC never answers0x20to a vehicle that did not ask for it. (An SECC of the reference implementation answers every request with one configured value today,SECC_SDPServerOptions.OfferedSecurity; it would have to answer per request.)An SECC that does not know
0x20. ISO 15118 does not say what an SECC does with an unknown value, so it was measured on 2026-11-28 against every SECC of the interop matrix of ISO15118ConformanceTests (its run notedocs/interop-runs/2026-11-28-sdp-unknown-security/):SECC Answer to 0x20EVerest 2026.10.0: EvseV2G,Evse15118D20,IsoMux; Josevnone; the request is logged as invalid and dropped the reference implementation; eVDriveFlow its configured value, 0x00or0x10tux-evse 0x20echoed, with the port of its plain-TCP V2G serverNone of them was harmed by it, and each answered the next valid request. Three rules for the EVCC follow, one per behaviour:
- Ask twice at once. The EVCC sends its request for
0x20and, right after it, the request it would fall back to (0x00), and takes the0x20answer where one arrives. Waiting for a silent SECC would spend the communication setup time, which EVerest bounds at 18 s from D-LINK ready ([V2G2-723]). The order matters:Evse15118D20keeps to the first request it accepted, and an unknown value is not accepted, so0x20first and0x00second works. - An answer with another value leads to the fallback the EVCC's configuration names (section 10.1): TLS, plain TCP where permitted, or nothing.
- An answer of
0x20is no proof of SSH. The EVCC connects, sends its SSH identification string and expects the server'sSSH-2.0-within a short time (RFC 4253, section 4.2). A V2GTP server sends nothing before it has read a V2GTP header. No banner, or another one, means that the SECC does not speak SSH: the EVCC closes and continues with the answer to its0x00request. A vehicle that pinned the station (section 6.6) treats this as a refused host key instead, and does not fall back (section 11.1).
- Ask twice at once. The EVCC sends its request for
The value is a proposal.
0x20is not assigned by ISO. It is chosen so that it does not collide with the two values that are, and to be coordinated with whoever maintains ISO 15118 before anyone ships it (question 2).
4.2 Port and address
- The SSH server listens on the link-local address of the V2G link only, on a port of the SECC's choosing, which the SDP response names. It is not the station's management SSH server, and it does not listen on any other interface (section 11.3).
- TLS and SSH side by side. An SECC that offers both listens on two ports and names the one that fits the request.
4.3 Without SDP
Test benches, simulators and the remote SECC of chapter 9 may skip SDP and dial a configured
address and port, as the reference implementation's FixedSeccDiscovery does for TCP today.
5. The session
5.1 Sequence
sequenceDiagram
participant EV as EVCC (SSH client)
participant SE as SECC (SSH server)
Note over EV,SE: SLAC: the vehicle joins the station's logical network
EV->>SE: SDP_Request Security 0x20, Transport 0x00 (UDP multicast)
SE-->>EV: SDP_Response fe80::…, port, Security 0x20, Transport 0x00
EV->>SE: TCP connect
EV->>SE: SSH transport: KEXINIT, key exchange
SE-->>EV: host key, signature over the exchange hash
Note over EV: verify the host key (section 6.1)
EV->>SE: SSH user authentication: "none", or "publickey" with the vehicle's key
EV->>SE: CHANNEL_OPEN "session", then "subsystem" iso15118@open.charging.cloud
SE-->>EV: CHANNEL_SUCCESS
EV->>SE: V2GTP 0x8001 SupportedAppProtocolReq
SE-->>EV: V2GTP 0x8001 SupportedAppProtocolRes
EV->>SE: V2GTP SessionSetupReq
Note over EV,SE: … the session, unchanged …
EV->>SE: V2GTP SessionStopReq
SE-->>EV: V2GTP SessionStopRes
EV->>SE: CHANNEL_EOF, CHANNEL_CLOSE, DISCONNECT
5.2 Bytes in the channel
- V2GTP frames, back to back, in both directions: the
SSH_MSG_CHANNEL_DATAof the channel carry exactly the octets that would otherwise be TLS application data. A frame may span several channel messages, and a channel message may carry several frames; the receiver reads the 8-byte V2GTP header and then as many octets as its length says, as it reads a TCP or TLS stream today. - The EVCC writes first, its
SupportedAppProtocolReq, as over TLS. - No extended data.
SSH_MSG_CHANNEL_EXTENDED_DATAis not used; a receiver discards it. - One writer at a time. A frame larger than one SSH packet, written by two tasks at once, would interleave. A side writes one V2GTP frame at a time, whole.
- Length limits are V2GTP's. A receiver checks the V2GTP length against its own limit before it allocates anything, as it must over TLS. SSH flow control (the channel window) bounds what a peer can send ahead, not how large one frame may be.
5.3 The end
| Over TLS | Over SSH |
|---|---|
close_notify, TCP FIN |
SSH_MSG_CHANNEL_EOF, then SSH_MSG_CHANNEL_CLOSE |
TCP connection closed after SessionStopRes |
channel closed, then SSH_MSG_DISCONNECT with reason 11 (by application) |
| TCP reset, or the link lost | the SSH connection lost: the session is lost, as today |
A closed channel ends the ISO 15118 session exactly as a closed TLS connection does. The SSH connection ends with its last ISO 15118 channel, unless a channel of chapter 8 is still open; the SECC closes those when the vehicle unplugs, i.e. when it would close the TCP connection today.
5.4 Timing
ISO 15118 bounds the time between SDP and the first V2G message, and the time a message may take.
Over SSH, everything from the TCP connect to CHANNEL_SUCCESS counts as the TLS handshake would.
| Step | Round trips |
|---|---|
| TCP | 1 |
SSH version strings and KEXINIT (sent by both sides at once) |
1 |
key exchange, NEWKEYS |
1 |
SERVICE_REQUEST ssh-userauth |
1 |
user authentication: none, or publickey with the signature in the first request |
1 |
CHANNEL_OPEN |
1 |
subsystem |
1 |
| total, before the first V2GTP frame | 7, against 2 for TLS 1.3 and 3 for TLS 1.2 |
On a PLC link the round trip is a few milliseconds, so the difference is well under 100 ms and far
inside the communication setup time ISO 15118 allows. The cost that matters on an embedded SECC is
the same in both: one signature of the server, and on the vehicle the verification of a key or a
chain. SSH_MSG_EXT_INFO (RFC 8308) adds no round
trip.
5.5 Pause and resume
- A resumed session is a new SSH connection. SSH has no session resumption; the vehicle that
wakes up after a pause makes a full handshake, then resumes at the application layer with its
SessionID, as ISO 15118 describes it. - ISO 15118-20 asks both sides to check the peer of a resume. The SECC shall verify that a
resume comes from the same EVCC (
[V2G20-2545]), and the EVCC that it talks to the same SECC ([V2G20-2539]); the methodology is left to the manufacturer, and the standard's worked example binds theSessionIDto the vehicle's TLS certificate. Over SSH:- The SECC binds the paused session to the public key the vehicle signed in with, e.g.
SHA-512(SessionID ‖ SHA-512(public key blob)), the same construction with the SSH key in place of the certificate. A vehicle that signed in withnonehas nothing to bind; its resume becomes a new session (OK_NewSessionEstablished,[V2G20-2626],[V2G20-2627]), and its authorization has to be made again. - The EVCC checks that the host key of the new connection is the host key of the paused one.
- The SECC binds the paused session to the public key the vehicle signed in with, e.g.
- ISO 15118-2 has no such check; the
SessionIDalone resumes ([V2G2-753],[V2G2-754], see the caveat on -2 citations in normative-basis.md). An SECC may still bind as above, and should, as the threat is the same.
6. Identity and trust
6.1 How the station proves it
| Mechanism | Trust anchor in the vehicle | Needs a correct clock | Suitable for |
|---|---|---|---|
| Pinned host key | the SHA-256 fingerprint of each station, or of a few | no | home, workplace, small depots, test benches |
| SSH host certificate (OpenSSH certificates) | one CA key of the operator | only with a limited validity | depots and fleets: new chargers without touching the vehicles |
X.509 SECC certificate in SSH (RFC 6187, x509v3-ecdsa-sha2-nistp256 or -nistp521) |
the V2G roots the vehicle already carries | yes, as today | public charging with the V2G PKI; the same chain as over TLS |
| Opportunistic: any host key, recorded but not verified | none | no | ISO 15118-2 and DIN SPEC 70121 with EIM, where the alternative is plain TCP (below) |
- Pins are a set, in SHA-256, so that a station's key can change while both keys are pinned.
- Pairing by QR code is how a private station gets its pin (section 6.6): the station shows its host key's fingerprint as a QR code, and the vehicle learns it from that code before its first session, not from the first session itself. For private charging this is the point of the whole paper: the station is authenticated without any PKI, by one scan.
- The X.509 mechanism keeps the V2G PKI and changes only the protocol that carries the chain. Few SSH implementations support RFC 6187 (PKIX-SSH does; OpenSSH and Hermod do not). It is the mechanism for public charging, and the reason why this paper does not exclude public charging, not the mechanism it starts with.
- Opportunistic host keys protect against a passive listener, e.g. on a neighbouring cable whose PLC signal couples into this one, and not against an active one. The HomePlug Green PHY network that SLAC sets up is encrypted at layer 2, but its network membership key is sent during SLAC in a form that whoever hears the matching can read. An opportunistic SSH session is still better than the plain TCP that ISO 15118-2 EIM sessions run in today, and worse than anything authenticated. It is never used for Plug & Charge, nor for ISO 15118-20 (section 6.5).
- The cable is the binding, here as with TLS. None of these mechanisms proves "the station this cable is plugged into"; a pin comes closest, because it names one station. A host certificate or an X.509 chain proves "one of the operator's stations", as a TLS certificate does today.
6.2 How the vehicle proves it
| Method | What the station learns | Suitable for |
|---|---|---|
none |
nothing beyond what ISO 15118 itself sends (the EVCCID in SessionSetupReq) |
public charging; any vehicle that is not to be recognised |
publickey, a key of the vehicle's own |
that it is the vehicle the key was enrolled for | home, workplace, small fleets |
publickey, an SSH user certificate |
that the operator's CA vouches for the vehicle, and as whom (the principal) | depots and fleets |
publickey, an X.509 vehicle certificate (RFC 6187) |
what mutual TLS with the vehicle certificate shows in ISO 15118-20 | OEM-provisioned vehicles |
- Login name.
evby default: the identity is the key, and the name carries nothing. A fleet whose server holds one account per vehicle may use the vehicle's id as login, as OCPP over SSH uses the station's id (question 4). - Passwords are not used. A password typed into a vehicle that a station checks has no place on this link.
- A known key may authorize. Where the operator says so, an SECC treats a session signed in with
an enrolled key as authorized by EIM:
AuthorizationReswithFinishedand no other means of identification, as Autocharge does with the EVCCID today, but with a key that cannot be read off the vehicle. The SECC reports the key's fingerprint to its CSMS as the identifier of the authorization; how OCPP names such an identifier is question 5. - Confinement of the vehicle's login. A vehicle's login opens
iso15118@and the services of chapter 8 that the station offers to it, and nothing else: no shell, noexec, no SFTP of its own, no forwarding other than that of section 8.2. Where an operator wants more, e.g. "this vehicle may speak ISO 15118-20 only", or "may discharge", the SECC holds a rule per key on the SupportedAppProtocol namespaces it may select and on the services it may choose.
6.3 Privacy
- A key is a persistent identifier. A vehicle that signs in with the same key at every station
can be tracked by every station operator, as a fixed EVCCID can today. A vehicle therefore signs
in with a key only where it is meant to be recognised, and uses
noneeverywhere else. - A key per operator. A vehicle that is recognised by several operators uses one key per operator (per host CA, or per pinned station set), as a WebAuthn authenticator uses one key per relying party. Two operators cannot link their records by the key.
- Nothing in the clear. Login and key travel inside the encrypted transport; a listener on the cable sees neither. The station's host key is visible, as a TLS 1.2 server certificate is.
6.4 Plug & Charge
Plug & Charge needs no change: the contract certificate chain, AuthorizationReq and its
signature, certificate installation and update, signed meter receipts and sales tariffs are
application-layer, and travel through the channel as through TLS. What Plug & Charge needs from the
transport is that the challenge comes from an authentic station and that nobody on the link reads
the messages. So:
- Plug & Charge over SSH only with an authenticated host key: pinned, by an SSH host CA the vehicle trusts, or by an X.509 SECC chain. Never over an opportunistic one.
- The vehicle enforces it. The SECC cannot see whether the vehicle verified its host key or
accepted it opportunistically, so it may offer
Contractas usual. It is the vehicle that does not selectContract, and sends no contract data, over a host key it did not verify.
6.5 ISO 15118-20 requires TLS 1.3
ISO 15118-20 says in three places that it rides on TLS 1.3 only: the EVCC shall not offer it in the
SupportedAppProtocolReq on a connection with TLS 1.2 or lower or on plain TCP ([V2G20-1237]),
the SECC shall not select it there ([V2G20-2356]), and both from the SDP side
([V2G20-1805], Table 5). An SSH connection is none of the connections the table lists. Taken
literally, ISO 15118-20 is not permitted over SSH at all.
This paper proposes a profile, not a reading of the standard:
- ISO 15118-20 over SSH only with an authenticated host key (section 6.1), strict KEX, and algorithms at least as strong as the TLS 1.3 profile of ISO 15118-20 (chapter 7). That is what the standard asks of TLS 1.3, in SSH's terms.
- Opportunistic SSH carries ISO 15118-2 and DIN SPEC 70121 only, as plain TCP and TLS 1.2 do.
- A session over SSH is not a conformant ISO 15118-20 session, whatever the profile, and an
implementation says so where it reports conformance. In the reference implementation this is a
fourth value of
TransportSecuritybesideNone,Tls12OrLowerandTls13, withIso20Transport.MayCarryIso20answeringtruefor an authenticated host key only (chapter 12).
Whether a future edition of ISO 15118 should name SSH beside TLS 1.3 is question 3.
6.6 Pairing by QR code
A private PKI is the hardest part of TLS for a private station: a CA to run, a sub-CA per operator, certificates to renew, roots to install in the vehicle, and a clock to check them. A QR code replaces all of it for the station's side.
- What the code carries. At least the SHA-256 fingerprint of the station's host key; where the
station has several EVSEs or several host keys, all of them. Optionally the station's EVSE ids,
a name for the user to recognise it by, and a one-time pairing code (below). The exact format is
question 11; a URI such as
iso15118-ssh:?hostkey=SHA256:hOEj1ea61PSArpO3/qj2Drlp024D2eiJ7DJQNNLl%2BhU&evse=DE*GEF*E1234*1is a sketch, not a proposal yet. - Where it is shown. Printed on a label, if the host key never changes; on the station's display or in its app, if the key can change or the code carries a one-time pairing code.
- Who scans it. The vehicle's own camera where it has one usable for this, otherwise the user's phone, whose app hands the pin to the vehicle over the OEM's channel or Bluetooth. Either way, the pin reaches the vehicle before the first session, over a path an attacker on the charging cable does not control.
- What the vehicle does with it. It pins the fingerprint for that station (section 10.1,
HostKeyPins), and from then on asks for SSH in SDP and accepts no other host key there. There is no trust on first use: the first session is already held to the pin. - The vehicle's key in the same step. A dynamic code can carry a one-time pairing code. In its first session the vehicle signs in with its key and proves the pairing code, bound to the SSH session as the bound methods of SSH Authentication Extensions bind a one-time password, and the station enrols the key (section 6.2). One scan pairs both directions: the vehicle knows the station, and the station knows the vehicle. How exactly the code is proven is question 12.
- Changing the station's key. The station shows a new code; the vehicle pins the new key beside the old one until the old one is retired. A station whose key changed without a new scan is a station the vehicle does not charge at over SSH.
7. Algorithms
7.1 What the TLS profiles of ISO 15118 map to
| ISO 15118-20 over TLS 1.3 | SSH equivalent | ISO 15118-2 over TLS 1.2 | SSH equivalent | |
|---|---|---|---|---|
| Key exchange | secp521r1, x448 | ecdh-sha2-nistp521 (RFC 5656), curve448-sha512 (RFC 8731) |
ECDHE or static ECDH over secp256r1 | ecdh-sha2-nistp256 |
| Signatures | ecdsa_secp521r1_sha512, ed448 |
ecdsa-sha2-nistp521, ssh-ed448 (RFC 8709) |
ECDSA over secp256r1 | ecdsa-sha2-nistp256 |
| Encryption | AES-256-GCM, ChaCha20-Poly1305 | aes256-gcm@openssh.com, chacha20-poly1305@openssh.com |
AES-128-CBC with HMAC-SHA256 | aes128-gcm@openssh.com |
| Post-quantum key exchange | none | mlkem768x25519-sha256, sntrup761x25519-sha512 |
none | the same |
7.2 Proposal
- One algorithm set for every part. The transport is SSH whatever SupportedAppProtocol later selects; an ISO 15118-2 session gets the algorithms of an ISO 15118-20 one.
- Key exchange, by preference:
mlkem768x25519-sha256,curve448-sha512,ecdh-sha2-nistp521. The first gives post-quantum protection of the recorded session today; it uses x25519, which is not among the groups of ISO 15118-20. Whether "at least as strong as the -20 profile" means its curves or its strength is part of question 3. - Host and vehicle keys: Ed25519 or Ed448 for pinned keys and SSH certificates; ECDSA over P-521 (or P-256 for ISO 15118-2 chains) where an X.509 chain is carried.
- Encryption: AES-256-GCM, ChaCha20-Poly1305. No CBC, no
-etmMACs needed with AEAD ciphers. - Strict KEX (draft-ietf-sshm-strict-kex) required on both sides, against the Terrapin attack.
- No SHA-1, no RSA, no DSA, no
diffie-hellman-group*.
8. Sharing the SSH connection
The connection is the vehicle's to the station, not ISO 15118's: the session is one channel of it. Two further services fit the link.
8.1 Authenticated time
A vehicle checks the validity of certificates, contract certificates and signed price schedules
against its clock. Where the host key is pinned or vouched for by an SSH CA without expiry, the
connection is authenticated without a clock, and can then give the vehicle one: the subsystem
ntske/1@open.charging.cloud of NTS Key Establishment over SSH, on the
same connection, followed by NTS-protected NTP to the station or to the time server it names. The
vehicle then validates the X.509 chains of Plug & Charge against a time it got from a station it
authenticated without one.
With an X.509 host key (section 6.1) this is circular, as it is over TLS: the chain's validity is checked against the clock the connection would deliver.
8.2 Value-added services
ISO 15118-2 lets an SECC offer value-added services, among them Internet access, which the vehicle
then uses through the station as its router. Over SSH, a station can offer the same without routing
the vehicle into any network: the vehicle opens direct-tcpip channels
(RFC 4254, section 7.2) to the
destinations the station's policy names, e.g. the OEM's backend on port 443, and to nothing else.
The station's own networks stay closed to the vehicle, and every forward is attributable to the
login that opened it.
- Forwarding is off unless the operator enables it, per login and per destination.
tcpip-forward, i.e. listening on the station for the vehicle, is never offered.
8.3 What a vehicle's login may open
| Service | Default | Section |
|---|---|---|
iso15118@open.charging.cloud |
yes | 3.7 |
ntske/1@open.charging.cloud |
where the station has a time server, and the host key is pinned or vouched for by an SSH CA | 8.1 |
direct-tcpip to named destinations |
no | 8.2 |
shell, exec, sftp, tcpip-forward, agent and X11 forwarding |
never | 6.2 |
9. An SECC that is not in the station
The SECC need not run in the station's controller. It may run on a separate communication module, on a Local Controller, in a test environment that drives a real station's PLC modem, or, as The ISO 15118 Tunnel discusses for diagnostics, in the backend. SSH separates two cases cleanly:
- The vehicle's SSH session ends at the remote SECC. The station relays the TCP connection unopened, and the remote SECC holds the host key. The vehicle authenticates the SECC, not the station; the station sees only ciphertext. This is the right shape where the remote SECC is the one that decides, and the station only provides the link.
- The vehicle's SSH session ends at the station, which relays the V2GTP stream to the remote
SECC over a channel
iso15118@of its own SSH connection to it, e.g. the connection of OCPP over SSH to its Local Controller or CSMS. The station is then the SSH client upstream, authenticated by its own key, and has to tell the remote SECC which EVSE the session belongs to and how the vehicle authenticated. Anenvrequest before the subsystem (RFC 4254, section 6.4) could carry both; this is question 8, not part of the proposal.
10. Configuration
10.1 The vehicle
| Setting | Values | Meaning |
|---|---|---|
Transport |
SSH, TLS, SSHThenTLS, TLSThenSSH |
what the EVCC asks for in SDP, and in which order it falls back (section 4.1) |
AllowPlainTCP |
true, false |
whether it may continue without transport security, where ISO 15118-2 permits that |
HostKeyPins |
SHA-256 fingerprints, per station or station set | section 6.1 |
HostCAs |
SHA-256 fingerprints of SSH CA keys | section 6.1 |
X509HostKeys |
true, false |
whether an RFC 6187 host key chain is checked against the vehicle's V2G roots |
Opportunistic |
true, false |
whether a host key nothing vouches for is accepted, for ISO 15118-2 and DIN SPEC 70121 EIM only (section 6.1) |
ClientKeys |
per operator, with the pins or CAs each key is for | section 6.3; none means none |
A vehicle never falls back from SSH to a weaker transport because a host key was refused. A refused host key ends the attempt; only an SECC that does not offer SSH at all leads to the fallback.
10.2 The station
| Setting | Meaning |
|---|---|
| host keys and, where used, the host certificate or X.509 chain | section 6.1 |
AcceptNone |
whether vehicles may sign in anonymously (public charging: yes) |
| enrolled vehicle keys and user CAs, each with its authorization and its rules (namespaces, services, forwards) | section 6.2 |
OfferSSH |
whether SDP answers 0x20 (section 4.1) |
For OCPP 2.x, these would become variables of the component ISO15118Ctrlr and of an SSH
component of the kind OCPP over SSH proposes as
SSHClientController, with the vehicle keys installed and withdrawn as station logins are there.
That mapping is not part of this version of the paper.
11. Security considerations
11.1 Downgrade
SDP is unauthenticated. An attacker on the link can answer a request for 0x20 with 0x00 or
0x10, or suppress the SECC's answer. Only the vehicle can defend against this, by its
configuration: a vehicle that knows the station speaks SSH (a pinned station, an operator's depot)
does not fall back. A vehicle that does fall back is exactly as safe as without this paper.
11.2 Authentication
- An opportunistic host key does not authenticate the station (section 6.1). It is accepted for ISO 15118-2 and DIN SPEC 70121 EIM only, never for Plug & Charge, never for ISO 15118-20.
- A pinned host key is the only check of the station; a stolen host key of one wallbox is valid for exactly the vehicles that pinned it. A stolen key of an SSH host CA is valid for the operator's whole fleet, as a stolen CPO sub-CA key is for TLS.
- A vehicle's key that authorizes charging is a credential. It is made in the vehicle, never leaves it, and is withdrawn by deleting its line at the station or by revoking its certificate in the CA's key revocation list.
11.3 Confinement and separation
- The V2G SSH server is not the management SSH server. It listens on the V2G link only, knows only vehicle logins, and offers only the services of section 8.3. A station whose management SSH answers on the PLC interface has a finding, with or without this paper.
- A vehicle's login reaches nothing a vehicle's TLS connection could not reach today, except the forwards of section 8.2 that the operator enabled.
11.4 Denial of service
An SSH handshake costs the SECC a signature and a key exchange, as a TLS handshake does. The SECC accepts one SSH connection per EVSE at a time, with a short timeout until the subsystem request, and none while a session is running on that EVSE. The link is the vehicle's cable, so the attacker of concern is on the cable or coupled into it.
11.5 Diagnostics
A capture of an SSH session, as The ISO 15118 Tunnel records TLS sessions with their keying material, needs the shared secret of each connection. Wireshark can decrypt SSH given a key log of these secrets; an SECC that offers such a log offers it under the same constraints as its TLS key log.
12. Implementation outline
Nothing of the binding is built; the SDP measurement of section 4.1 is. What the reference implementations would need:
| Repository | What | Exists today |
|---|---|---|
| Hermod | SSH server and client, subsystems, PermittedSubsystems, the client's OpenSubsystemAsync, strict KEX, mlkem768x25519-sha256, sntrup761x25519-sha512, ecdh-sha2-nistp521, ecdsa-sha2-nistp521, OpenSSH certificates, the SSH exporter |
yes, from OCPP over SSH and NTS over SSH |
| Hermod | curve448-sha512, ssh-ed448 signatures, RFC 6187 host and user keys |
no |
| WWCP_ISO15118 SDP | SDP_Security.SSH = 0x20; SECC_SDPServer answering per request instead of with one OfferedSecurity; SdpSeccDiscovery asking for 0x20 and falling back as configured |
no |
| WWCP_ISO15118 Session, transport | an SshV2GListener and SshV2GClient beside TcpV2GListener and TcpV2GClient, each handing out the channel as the Stream the session already takes |
no; TcpV2GListener.AcceptAsync already returns a plain Stream |
| WWCP_ISO15118 Session, negotiation | TransportSecurity.SshAuthenticated and SshOpportunistic; Iso20Transport.MayCarryIso20 for the first only (section 6.5) |
TransportSecurity and Iso20Transport exist |
| WWCP_ISO15118 Session, state machines | the resume binding of section 5.5 with the SSH key in place of the TLS certificate | the binding for TLS |
| SECC and EVCC programs | --transport ssh, host keys, pins, vehicle keys |
no |
| ISO15118ConformanceTests | the SDP 0x20 probe against every counterparty (section 4.1) |
yes, 2026-11-28 |
| ISO15118ConformanceTests | loopback end-to-end sessions over SSH for DIN SPEC 70121, ISO 15118-2 and ISO 15118-20; negative cases (foreign host key, opportunistic key with -20 or Plug & Charge, shell and forwarding by a vehicle login, a second iso15118@ channel, an SDP echo of 0x20 in front of a plain TCP server); OpenSSH as the transport in front of a counterparty (appendix B) |
no |
The state machines, the EXI codec and the session corpus need no change, which is the point of section 2.1: the existing loopback and corpus tests would run unchanged over the new transport.
13. Questions for discussion
13.1 Decided
Decided on 2026-11-28:
- D1. One subsystem,
iso15118@open.charging.cloud, for DIN SPEC 70121, ISO 15118-2 and ISO 15118-20, with SupportedAppProtocol inside as over TLS. No per-part names (chapter 3). - D2. Private stations are paired by QR code. Authenticating the station without a PKI is where this binding gains most, and the vehicle learns the station's host key from a QR code the station shows, before its first session, never by trust on first use (section 6.6).
13.2 Open
The numbers are those of version 0.1; question 1 became D1.
- The SDP value. Proposal:
0x20for SSH, to be coordinated before shipping (section 4.1). The SECCs of the interop matrix tolerate it (measured 2026-11-28); one echoes it, which the banner rule of section 4.1 covers. The alternative is no SDP change at all and a configured port, which excludes every vehicle that does not know the station beforehand. Open: whether the value should be0x20, and who assigns it. - ISO 15118-20 over SSH. Proposal: a private profile that permits it with an authenticated host key and strict KEX, and says that such a session is not conformant (section 6.5). Open: whether "as strong as the -20 profile" means its exact curves (secp521r1, x448) or its strength, which would admit the post-quantum hybrid with x25519 (section 7.2); and whether to propose SSH to a future edition.
- Login name. Proposal:
ev, the key being the identity; the vehicle's id only where a fleet's server has one account per vehicle (section 6.2). - A key as EIM authorization. How the SECC reports it to its CSMS: as an
IdTokenwith the key's fingerprint, of which type (section 6.2). - Opportunistic host keys. Proposal: permitted for ISO 15118-2 and DIN SPEC 70121 EIM, as better than the plain TCP in use today. The alternative is to permit authenticated host keys only, which keeps the rule simpler and leaves those sessions in plain TCP.
- Public charging. Whether RFC 6187 is worth supporting, or public charging is left to TLS for good (section 6.1).
- A relayed session (chapter 9): how a station tells a remote SECC which EVSE a channel belongs to and how the vehicle authenticated.
- Value-added services over
direct-tcpip(section 8.2): in this paper or a paper of their own. - Standardization. A private specification for now. Once there is an implementation on both sides and field experience, a proposal to the ISO 15118 working group and to CharIN's testing events.
- The QR code's format (section 6.6): a URI of its own, an
ssh://URI with a fingerprint parameter, or a field of an existing station QR code such as the one of Secure Dynamic QR Codes; and what it carries besides the fingerprint. - Enrolling the vehicle's key in the same pairing (section 6.6): how the vehicle proves the one-time pairing code, bound to the session; and whether a household needs it at all, or the station simply enrols the first key that signs in within a few minutes of the code being shown.
14. Relation to other white papers
- OCPP over SSH: the same idea between station and back end, from which this paper takes the naming of the subsystem, the confinement of logins, the host key mechanisms and the rejected alternatives. It needs a framing of its own because a WebSocket has frames; this paper does not, because V2GTP has them (section 2.1).
- NTS Key Establishment over SSH:
ntske/1@as the vehicle's source of authenticated time over the same connection (section 8.1). - SSH Keying Material Exporter: available to the
iso15118@handler, for a future binding of application-layer signatures to the connection; nothing in this version needs it. - SSH Authentication Extensions for OCPP: the one-time password methods there are not used on the V2G link (section 6.2).
- The ISO 15118 Tunnel: capture and relaying of V2G sessions, and their keying material (sections 9, 11.5).
- ISO 15118 via OCPP 2.1: what the CSMS learns of a V2G session; a key as EIM authorization would reach the CSMS that way (question 5).
- Chargy in the Vehicle: signed meter readings and charging reports over ISO 15118, which travel through the channel unchanged.
- Key Pins and TLS 1.3 Raw Public Keys for Local Controllers: pins and trust on first use for TLS, the other way to drop a PKI without dropping TLS. On the V2G link it would need a change of ISO 15118's TLS profile as well, so it buys less there than SSH does.
References
- RFC 4250: The Secure Shell (SSH) Protocol Assigned Numbers
- RFC 4251: The Secure Shell (SSH) Protocol Architecture
- RFC 4252: The Secure Shell (SSH) Authentication Protocol
- RFC 4253: The Secure Shell (SSH) Transport Layer Protocol
- RFC 4254: The Secure Shell (SSH) Connection Protocol
- RFC 5656: Elliptic Curve Algorithm Integration in the Secure Shell Transport Layer
- RFC 6187: X.509v3 Certificates for Secure Shell Authentication
- RFC 8308: Extension Negotiation in the Secure Shell (SSH) Protocol
- RFC 8709: Ed25519 and Ed448 Public Key Algorithms for the Secure Shell (SSH) Protocol
- RFC 8731: Secure Shell (SSH) Key Exchange Method Using Curve25519 and Curve448
- RFC 9519: Update to the IANA SSH Protocol Parameters Registry Requirements
- draft-ietf-sshm-mlkem-hybrid-kex (
mlkem768x25519-sha256, work in progress) - draft-ietf-sshm-strict-kex (strict KEX, work in progress)
- Terrapin Attack (CVE-2023-48795)
- OpenSSH PROTOCOL.certkeys: SSH certificates
- ISO 15118-2:2014, Network and application protocol requirements (SDP, V2GTP, TLS 1.2 profile, SupportedAppProtocol)
- ISO 15118-20:2022, 2nd generation network layer and application layer requirements (TLS 1.3 profile, transport rules, session resumption)
- DIN SPEC 70121:2014, Digital communication between a d.c. EV charging station and an electric vehicle
Requirement identifiers are cited, never their text. Citations of ISO 15118-20 rest on the FDIS, those of ISO 15118-2 on the 2022 DIS revision, with the caveat that normative-basis.md of ISO15118ConformanceTests explains.
Appendix A: Test vectors
A.1 SDP request for SSH
01 FE 90 00 00 00 00 02 V2GTP: version 1, payload type 0x9000 (SDP request), length 2
20 Security: SSH (proposed)
00 Transport: TCP
A.2 SDP response offering SSH
From an SECC at fe80::1 whose SSH server listens on port 50000:
01 FE 90 01 00 00 00 14 V2GTP: payload type 0x9001 (SDP response), length 20
FE 80 00 00 00 00 00 00 00 00 00 00 00 00 00 01 SECC address fe80::1
C3 50 port 50000
20 Security: SSH (proposed)
00 Transport: TCP
A.3 The first octets of the channel
The first SSH_MSG_CHANNEL_DATA the EVCC sends after CHANNEL_SUCCESS carries a
SupportedAppProtocolReq exactly as over TLS. This one offers ISO 15118-2 and is taken from the
session corpus of the reference implementation (vectors/Session.iso2-ac-eim-meter.trace.json,
exchange 0):
01 FE 80 01 00 00 00 24 V2GTP: payload type 0x8001, length 36
80 00 EB AB 93 71 D3 4B 9B 79 D1 89 A9 89 89 C1 EXI: SupportedAppProtocolReq
D1 91 D1 91 81 89 99 D2 6B 9B 3A 23 2B 30 02 00 urn:iso:15118:2:2013:MsgDef, 2.0
00 04 00 40
and the SECC answers in the same channel:
01 FE 80 01 00 00 00 04 80 40 00 40 SupportedAppProtocolRes: OK_SuccessfulNegotiation
A test of the binding replays the whole corpus over an SSH channel and compares the frames byte for byte with the TLS and TCP runs.
Appendix B: OpenSSH in front of an existing SECC and EVCC
Because the channel carries plain V2GTP, OpenSSH can put SSH in front of an SECC or EVCC that knows nothing of it, as long as that side can run without TLS. This is how the binding can be tested against independent stacks before any of them implements it. A sketch, not tested in this form:
B.1 On the station
An SECC listening in plain TCP on [::1]:61341, and sshd on the V2G link:
# /etc/ssh/sshd_config.d/v2g.conf
ListenAddress fe80::1%eth1
Port 50000
Subsystem iso15118@open.charging.cloud /usr/bin/nc -6 ::1 61341
Match User ev
DisableForwarding yes
PermitTTY no
ForceCommand /usr/bin/nc -6 ::1 61341
- The vehicle signs in as
evwith a key in~ev/.ssh/authorized_keys. OpenSSH has no anonymous login, sononecannot be tested this way. - The SECC sees a connection from
::1and no identity; whatever section 6.2 decides by the key is lost behindnc. It is a test of the transport, not of the authorization. - The SDP answer with
0x20has to come from the test harness, as the SECC's own SDP server does not know the value.
B.2 In the vehicle
An EVCC that can be pointed at a fixed endpoint (section 4.3) in plain TCP:
socat TCP6-LISTEN:61341,bind=[::1],reuseaddr,fork \
EXEC:"ssh -i ev_id_ed25519 -o StrictHostKeyChecking=yes -o UserKnownHostsFile=v2g_known_hosts -p 50000 -s ev@fe80::1%eth0 iso15118@open.charging.cloud"
The EVCC connects to [::1]:61341; each connection becomes one SSH connection and one
iso15118@ channel to the station.
License
© 2026 GraphDefined GmbH
This document is published under the Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA 4.0). You are free to share, adapt, and build upon it, even for commercial purposes, as long as you give appropriate credit and distribute your work and contributions under the same license.
ISO 15118 and DIN SPEC 70121 are © ISO and DIN respectively. This paper cites their requirement identifiers and paraphrases what they oblige; it does not reproduce their text.