Streamlining Plug-and-Charge Authorization for Electric Vehicles with OAuth 2 and OpenID Federation
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
기본 정보
- 저자
- DOI
- 10.1109/access.2025.3613667
- 저널
- IEEE Access
- 발행년도
- 2025
- 발행기관
- Institute of Electrical and Electronics Engineers
- 피인용수
- 0
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1109/access.2025.3613667
- 토픽
- Advancements in Photolithography Techniques
- OpenAlex ID
- W4414432056
평가 내용
- 관련도
- 사업분야
- 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
본문 103,788자
본문 펼치기
섹션 본문 169문단 · 84,769자
(제목 없음)
1The Plug-and-Charge (PnC) standard defined in ISO 15118 facilitates simple Electric Vehicle (EV) charging with modern Charge Points (CPs).When drivers plug in their EV into a CP, the EV authenticates itself to the CP with a so-called contract certificate.Then, the CP automatically initiates charging and billing.In this paper, we identify gaps in PnC regarding the installation process of the contract certificate in EVs.We propose an alternative approach based on modern extensions of OAuth 2, i.e., OpenID Federation with a Device Authorization Grant and a Rich Authorization Request.We perform a symbolic protocol verification using the Tamarin prover to prove security, provide an open-source implementation to demonstrate the feasibility of the concept, and evaluate the performance of the prototype.The new approach is more user-friendly, more secure, and features a less complex EV charging authorization than existing solutions.The proposed cross-device authorization flow can also be applied to use cases beyond EV charging, where users authorize IoT devices from a trusted smartphone.
I. INTRODUCTION
2Charging Electric Vehicles (EVs) at public Charge Points (CPs) is currently realized with different approaches for user authorization, e.g., RFID cards or charging apps.To make this process more user-friendly, various protocols have been defined in recent years.One of the most important developments is the definition of Plug-and-Charge (PnC) based on the ISO 15118 standard [1].With PnC, the CP authenticates the EV with a so-called contract certificate.This contract certificate is issued by a so-called e-Mobility Service Provider (eMSP), e.g., an energy provider.The certificate-based authentication then serves as the basis for
3The associate editor coordinating the review of this manuscript and approving it for publication was Giambattista Gruosso .
4charge authorization and billing.The driver does not need to do anything more than plug the EV into the CP.
5However, the PnC standard leaves relevant details of the installation process open, i.e., how the driver initially registers an EV at the eMSP, and how the driver tells the EV software from which eMSP it should request the contract certificate.This has led to proprietary solutions and standardization bodies developing additions to filling these gaps, e.g., the German VDE application guideline for ISO 15118 certificate handling [2].The full PnC installation process is therefore specific to each combination of EV manufacturer and eMSP.Drivers need to check how this process will work for their combination.But users of digital consumer technologies are used to being guided through such installation processes.This is impossible with PnC because of the huge amount of steps being individual to EV manufacturers and eMSPs.
6We address this issue by transferring the paradigm of an app-guided installation process, which covers the entire process from the EV setup to the EV registration at the eMSP.Our proposed EV charging authorization process is based on OAuth 2 (RFC 6749 [3]), the predominant authorization standard on the Internet, for a familiar user experience.This is important for drivers because simplifying the PnC installation process lowers the burden for switching to another eMSP, e.g., to take advantage of eMSP-specific discounts, or to lower costs.
7Compared to the patchwork of proprietary solutions in PnC, OAuth 2 provides a widely accepted authorization process and comes with many useful extensions.The OpenID Federation standard [4] describes one central entry point for the authorization process where drivers select their preferred eMSP from a list of eMSPs within the federation.The federation approach thereby reduces PnC's technical complexity, which has already been demanded [5] because the complexity was criticized by relevant stakeholders [6].With the OAuth 2 Device Authorization Grant (RFC 8628 [7]), drivers conveniently authorize their EV for charging from their smartphone.In contrast to logging in to the eMSP on the EV's infotainment system, drivers thereby avoid credential exposures to an eventually manipulated EV software.We also propose how eMSPs can simplify their customer registration process by allowing third-party logins with payment providers using the basic OAuth 2 authorization flow (RFC 6749 [3]).This enables EV drivers to become new customers at an eMSP more quickly, and grant payment authorization without creating a new account manually or waiting for a letter with a default password.By utilizing OAuth 2's Rich Authorization Request (RAR) extension (RFC 9396 [8]), we introduce fine-grained authorization to PnC and improve its overall security.For example, this enables EV drivers to set the end date of their charge contract to the drop-off date of their rental car directly in the authorization process.
8The main contributions of the paper can be summarized as follows:
91) We describe and analyze the current EV charging process, a relevant adversary model, as well as security and feasibility requirements with respect to an OAuth 2-based solution.2) We design a detailed concept for the application of the OAuth 2 device authorization grant to EV charging authorization.3) We develop an open-source proof-of-concept implementation of the proposed solution and evaluate the performance to demonstrate its feasibility.4) We verify the security of the proposed solution using a tool-based formal security verification with the Tamarin prover [9] and publish the corresponding Tamarin models.5) By authorizing an EV from a smartphone, we implement a so-called cross-device authorization flow, which often comes with security vulnerabilities.To fix them, authors of an IETF draft [10] highly recommend a formal security analysis as we did.Therefore, the proposed solution is suitable as a blueprint for similar scenarios beyond the EV context.
10The remainder of the paper is structured as follows.In Section II, we explain the EV charging architecture according to ISO 15118 and give an introduction to OAuth 2, its relevant extensions, and OpenID Federation.Afterwards, we discuss related work in Section III.The analysis of the existing process, the adversary model, and identified requirements are described in Section IV.In Section V, we introduce the concept of OAuth 2-based EV charging authorization in an OpenID Federation, and a simple extension for online payment with OAuth 2.Then, we present a proof-of-concept implementation in Section VI.In Section VII, we evaluate the implementation's performance, its security, and how the proposed solution fulfills the requirements.We conclude the paper in Section VIII.
II. BACKGROUND
11In this section, we describe the necessary background on EV charging, the OAuth 2 authorization framework, its extensions, and OpenID Federation.
A. EV CHARGING ARCHITECTURE
12Figure 1 shows a simplified EV charging architecture based on the ISO 15118 charge communication standard [1] which is described in the following.
1) TERMINOLOGY
13Besides the Electric Vehicle (EV) and the Charge Point (CP), the system for contract-based charging involves the following entities.
14Original Equipment Manufacturer (OEM): Produces the EV.Charge Point Operator (CPO): Manages CPs for billing and load management.Certificate Provisioning Service (CPS): Acts as a trusted third-party for the EV during credential installation.e-Mobility Service Provider (eMSP): Implements billing by a contract with the driver; typically an energy or charging infrastructure provider.
2) OVERVIEW
15The PnC standard promises simple charging and billing for which the driver only has to plug the EV into a CP.After charging, the CP's CPO bills the eMSP for the charged energy, and the eMSP bills the driver.This requires the driver to conclude a charge contract with an eMSP in advance.From a technical perspective, the CP authenticates the EV with an X.509 contract certificate before charging.The eMSP has issued this certificate to the EV after concluding a contract with the driver.By validating the certificate and its issuer, the CPO identifies the driver's eMSP for billing.Concluding such a charge contract requires the driver to provide the EV's unique Provisioning Certificate Identifier (PCID) to the eMSP.Before the first charging process, the EV requests the contract certificate from the eMSP.The eMSP thereby authenticates the requesting EV with an X.509 provisioning certificate that the OEM has issued to the EV during production.The ISO 15118 specification of contract conclusion between driver and eMSP, and contract certificate issuance between EV and eMSP, lacks several details.Therefore, implementations vary depending on the EV model and eMSP.We elaborate on this and other shortcomings of the PnC standard in Section IV-B1.
16Since many parts of these processes, as described in ISO 15118, remain unclear, the German technical-scientific association "Verband der Elektrotechnik Elektronik Informationstechnik (VDE)" has created an application guideline to fill the gaps [2].In the following, we explain these processes in detail with Figure 1 and clearly mark the missing steps and how the VDE application guideline has filled them.
3) EV PROVISIONING
17During EV production, the OEM generates provisioning credentials for the EV ①.The provisioning credentials consist of an asymmetric provisioning key pair and a corresponding public key certificate.The certificate contains a PCID which uniquely identifies the EV.The OEM issues these credentials using its own certificate chain with an OEM root Certificate Authority (CA) and up to two OEM sub-CAs (cf. Figure 2).
18Once the EV is purchased, the driver can retrieve the PCID from the EV.The driver can then conclude a charging contract at an eMSP by providing the retrieved PCID ②. Specific methods for retrieving this PCID from the EV and registering the EV with this PCID at the eMSP are not defined by ISO 15118, cf.Section IV-B1.
19According to ISO 15118, the eMSP now remembers this registration until it receives a contract certificate request from an EV.However, since ISO 15118 did not specify how the EV's request can reach the correct eMSP, the VDE application guideline has added the following steps.In these steps, the eMSP creates contract credentials for the EV after the driver has concluded the contract.First, the eMSP generates an asymmetric contract key pair for the EV.From the contract public key, it issues a contract certificate which it signs with its own eMSP certificate.This eMSP certificate is within the eMSP root CA, which has up to two eMSP sub-CAs (cf. Figure 2).Afterwards, the eMSP retrieves the EV's public key from a public database containing all EV's provisioning certificates indexed by their PCID.Then, the eMSP encrypts the contract private key with the retrieved EV's provisioning public key.The contract certificate, including the public key and the encrypted contract private key, thereby form the contract credentials and are sent to the CPS ③.Finally, the CPS signs and uploads the contract credentials to a centralized certificate pool.For this purpose, the CPS possesses a CPS leaf certificate, which is in a chain below a CPS sub-CA and below the Vehicle to Grid (V2G) root CA.From the centralized certificate pool, the contract credentials can be accessed by the corresponding EV's PCID.This is important for the next step.
4) CONTRACT CREDENTIAL INSTALLATION
20When the driver plugs the EV into a CP for the first time, communication starts over the charging cable using Power Line Communication (PLC).The EV authenticates the CP using Transport Layer Security (TLS) with the CP's leaf certificate.The EV thereby verifies the CP's X.509 certificate through the CPO's certificate chain below the so-called V2G root certificate (cf. Figure 2).This requires the V2G root certificate to be installed on the EV beforehand.
21After communication is set up, the EV sends a contract credential installation request to the CP ④.This request contains the EV's provisioning certificate with the EV's unique PCID.The EV signs this request with its provisioning private key.The CP forwards the request to the CPO ⑤, which forwards the request to the CPS ⑥.According to ISO 15118, the CPS should forward the request to the eMSP.However, ISO 15118 does not clearly describe how the CPS determines to which eMSP it has to forward the request, cf.Section IV-B2.
22The VDE application guideline solved this issue with the centralized certificate pool from which the CPO retrieves the pre-registered contract credentials when receiving the contract certificate request.Before that, the CPO uses the EV's provided provisioning certificate to identify the EV by its PCID, and to verify the request message's integrity.The CPO also validates that the provisioning certificate was issued by a trusted OEM within the OEM's root CA (cf. Figure 2).After a successful validation, the CPO looks up the contract certificate from the certificate pool, which was pre-registered by the eMSP and signed by the CPS ⑦.
23Finally, the CPO passes the contract certificate response via the CP ⑧ to the EV ⑨.The EV then verifies the CPS's signature and decrypts the contract private key using its provisioning private key.The EV then stores the decrypted contract private key and corresponding contract certificate for future processes.
5) PLUG-AND-CHARGE AUTHENTICATION
24If the EV has valid contract credentials, it can use these credentials for PnC authentication at a CP via a challenge-response protocol ⑩.For this purpose, the CP sends a challenge (nonce) and the EV responds by signing the nonce with its contract private key.The CP verifies this signature with the public key from the EV's contract certificate, whose validity is checked with the eMSP's certificate chain.This validity check requires the eMSP root certificate to be installed on the CP.If all these validations pass, the EV is authorized to charge at the CP.During the charging session, the EV may sign the CP's energy meter readings with its contract credential private key, which serves as proof to the CPO for billing with the eMSP.The eMSP uses the information received from the CPO to bill the EV user based on the existing charging contract.
25OAuth 2 is currently the main authorization standard for the Web.The following subsections explain the OAuth 2 standard and the extensions used for EV charging authorization.
1) OVERVIEW
26The OAuth 2 authorization framework is standardized in RFC 6749 [3].The framework enables users to grant their clients scoped access to protected resources on a resource server.Examples for clients are Internet of Things (IoT) devices, Web, or native applications.Protected resources may be user data or restricted actions; the user is therefore designated as the resource owner.
27In contrast to 'naive' approaches, where the user stores credentials on the client, the OAuth 2 protocol requires the resource owner in a browser-based authorization flow to log in to an Authorization Server (AS) and grant the client permission to access a pre-defined set of protected resources, referred to as the scope.Subsequently, the AS issues an access token to the client, which enables the client to access the protected resources within the scope granted at the resource server.OAuth 2 thus enhances security by limiting client access to the user-granted scope within the user's account without disclosing login credentials to the client.
2) DEVICE AUTHORIZATION
28RFC 8628 [7] extends OAuth 2 by the device authorization flow in which the resource owner authorizes a client, e.g., an IoT device, from a trusted device, e.g., a smartphone.The major advantage is that the user (the resource owner) does not need to enter any credentials on the IoT device (client).This improves usability because users do not need to rely on their IoT devices' limited input methods and can also reuse active sessions on their smartphones (trusted devices).It also improves security because the AS will only provide the client with a scoped access token instead of creating a full-fledged session, which could be used to grant other authorization requests.Figure 3 illustrates this device authorization flow.
29First, the IoT device sends a device authorization request to the AS ①, containing the requested scope, and its client credentials, which were pre-registered by a developer.The client credentials thereby typically consist of a public client ID and a confidential client secret.After the AS has successfully authenticated the client with its client credentials, the AS registers this request ②.Then, the AS responds with a verification URI, and issues a complex non-guessable device code, and a non-guessable but easily transcribable user code of typically 8 alphanumeric characters ③.The IoT device then displays ④ the verification URI typically in the form of a QR code, and the user code to the user ⑤.Then, the IoT device starts polling a device access token request from the AS periodically ⑥.
30The user then browses the verification URI on a trusted device and enters the displayed user code ⑦.Subsequently, the AS authenticates the user ⑧ who then reviews and grants the requested scope to the IoT device ⑨.The AS then activates the corresponding device code ⑩.When the IoT device polls a device access token request with this device code and the corresponding client ID for the next time, the AS generates an access token and issues it as a device access token response .This token contains the authorized scope with a short-term validity period and is signed with the AS's private key K − AS .
3) RICH AUTHORIZATION REQUESTS
31In OAuth 2, scopes are finite, meaning they can, e.g., grant payment authorization in general.Because they are finite, they cannot grant specific transaction limits as this would require an infinite number of pre-registered scopes, one for each possible transaction limit.RFC 9396 [8] introduces Rich Authorization Requests (RARs), which enables clients to incorporate supplementary authorization details in the authorization request ①.In the authorization step ⑨, the AS will display these details to the user and include them in the issued access token .Such authorization details may include, e.g., a transaction limit of $100 per month.
4) RESOURCE REQUEST
32With an access token of appropriate scope and authorization details, a client can access protected resources on a resource server.Figure 4 illustrates a resource request.The client transmits a resource request for the protected resources to the resource server ①, which then validates the access token and determines whether it has sufficient scope and authorization details ②.If valid, the resource server responds with the protected resources ③.
C. OPENID FEDERATION
33OAuth 2 is also being used by users to sign in to a service with a third-party identity provider, e.g., Apple, Facebook, or Google.The service is thereby an OAuth 2 client which the service provider has registered at the identity provider's AS.This Single Sign-On (SSO) extension of OAuth 2 is specified in the OpenID Connect standard [11].
1) SCALING ISSUES
34The registration process for an OAuth 2 client is neither specified in the OAuth 2 nor in the OpenID Connect standard.In practice, service providers must apply for a developer account at the AS and register a new client on the developer portal.Offering OpenID Connect-based login with a large set of identity providers, e.g., all universities worldwide, would require an extremely time-consuming registration process.Therefore, it would be beneficial if identity providers could join together so that service providers only need to register their clients once, and users can log in at the service with every identity provider within the set.
2) SCALING SOLUTION
35The OpenID Federation standard [4] targets this issue by introducing a federation of multiple identity providers.With OpenID Federation, a service provider registers its service as an OAuth 2 client at exactly one identity provider's OAuth 2 AS within the federation.Such ASs are referred to as OpenID providers.Then, every user of any identity provider within the federation can be used to sign in to the client.The Global Assured Identity Network (GAIN) [12] is an example of such a worldwide federation of trustful OpenID providers, which mainly consists of banks.
36Figure 5 illustrates a typical example of such a federation.For administrative reasons, typically one OpenID provider is referred to as the federation master, which maintains the federation.Then, trustworthy OpenID providers (in OAuth terminology: Authorization Servers) are being registered at the federation master.These OpenID providers manage registered clients and users (in OAuth terminology: resource owners).As a result of the federation approach, users of any OpenID provider within the federation can log in to every client registered at any OpenID provider within the federation.
3) FEDERATION POLICIES
37For administrative purposes, federation masters can define policies.For example, they can restrict specific OpenID providers to only allow registering clients and not registering users, or vice-versa (cf.red parts in Figure 5).In our approach, we will use these policies to let an EV manufacturer's OpenID provider only manage clients (which will be the EVs), and to let an eMSP's OpenID provider only manage users (which will be the EV drivers).
4) AUTHORIZATION PROCESS
38When a client (EV) requests authorization, it presents to the user (driver) a list of all OpenID providers within the OpenID Federation.Therefore, the federation master publicly shares a list of all registered OpenID providers' metadata on a standardized HTTPS endpoint.Users then select their OpenID provider, which authenticates them through a browser-based authentication process.Before users authorize the client (EV), the OpenID provider authenticates the client using a challenge-response protocol (cf.① in Figure 3).In this protocol, the client signs a unique JSON Web Token (JWT) with its private key.The client's OpenID provider publicly shares the corresponding public key on an HTTPS endpoint, along with other registered client metadata.This authentication method is specified in the OpenID Connect Core standard [11] and is called private_key_jwt.
D. SUMMARY
39The presented standards PnC, OAuth 2, and OpenID Federation share many concepts.From a high-level perspective, they all provide a framework for letting a user authorize a device.Therefore, the user is authenticated by a service that issues a credential to the device that can be used to gain access to a target service.The terminology used is summarized in Table 1.
40The different capabilities of the standards that we combine in our approach are summarized in Table 2.
III. RELATED WORK
41In this section, we briefly summarize related work in the context of EV charging security and OAuth 2.
A. EV CHARGING SECURITY
42As the connectivity of modern vehicles increases, so does their potential attack surface [13].One relatively new area of vehicle connectivity is that between an EV and the charging infrastructure.In this e-mobility system, several actors and communication protocols lead to various potential security threats [14].The possible consequences of attacks in the e-mobility sector range from financial damage and privacy violations to safety risks and even power grid stability issues [15], [16], [17].
43Several papers propose security architectures for the EV charging system that address different kinds of potential threats.For example, the authors of [18], [19], and [20] propose the integration of Hardware Security Modules (HSMs) into ISO 15118 to protect the private billing-relevant data of EVs and ensure the integrity of an EV's software state.The authors of [21] focus on providing end-to-end security of charging data via middleware-based publish/subscribe communication, [22] looks at long-term non-repudiation, and [23] offers post-quantum security for EV charging.Various decentralized approaches exist: the authors of [24], [25], and [26] propose different blockchain-based approaches to EV charging, and the authors of [27], [28], and [29] consider Self-Sovereign Identity-based methods.Furthermore, several papers offer privacy enhancements in the EV charging context.For instance, the authors of [30] propose a pseudonym-based fast authentication scheme for contactless charging, authors of [31] design a homomorphic encryption-based scheme for energy supplier matching, and the solutions presented in [32], [33], and [34] all look at the use of Direct Anonymous Attestation schemes for EV authentication.
44In comparison to related work, this paper provides scientific novelty by proposing an OAuth-based approach to EV credential handling, which offers secure fine-grained authorizations based on a widely used standardized framework (i.e., OAuth 2).
B. OAUTH 2
45OAuth was combined with EV charging several times.
VOLUME 13, 2025
46Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.Gadacz proposed the Online Internet Account Authentication approach [35] where the driver authorizes payment via Google Pay with OAuth.The driver scans a QR code on the CP, which initializes an OAuth flow to authorize the CP to debit money from the driver's bank account for the charging process.This requires the CP to implement this payment method, and the driver must trust the CP and that the QR code was not manipulated.The driver must repeat this authorization process for every charging process.In our approach, the driver authorizes the EV for PnC to debit money from the driver's bank account once and to pay for any future charging process.
47Timpner et al. proposed a smartphone-based registration and key deployment for vehicle-to-cloud communications [36] to persist a payment authorization for EV charging processes.In their proposal, the driver generates a key pair on a smartphone and requests a signed certificate from a CA to deploy this key pair with the issued certificate to the EV.The EV can then authenticate with this certificate to prove authorization to pay the charging bill with the driver's bank account.The approach is not directly compatible with the PnC infrastructure, but some basic concepts may also be applied.However, generating the key pair on a third-party device and then transferring it to the EV is a bad design [19], [20].In our approach, we avoid this problem and implement modern OAuth extensions like the Device Authorization Grant (RFC 8628 [7]) and Rich Authorization Requests (RFC 9396 [8]) to improve the security further.
48The Client-Initiated Backchannel Authentication (CIBA) Flow [37] extends OpenID Connect by the capability of cross-device authentication and is typically used for online banking applications.Applied to the EV charging authorization use case, this would require the user to have already installed the eMSP's smartphone app and established a secure side channel with a smartphone before authorizing the EV.This will break the use case of becoming an eMSP customer spontaneously to take advantage of special discounts and will lead to the same bad user experience as it is right now with CPO-specific app payment solutions.
49Another competing authentication mechanism is FIDO2 [38], which may be used to log in with a payment provider on the EV using CTAP over Bluetooth with a Passkey on the smartphone.This, however, would lead to an authenticated session with the payment provider on the EV.A compromised EV could therefore grant itself any preferred scope, which makes the user lose control.We solve this issue by using OAuth's device authorization flow (RFC 8628 [7]) instead.
50Kasselman et al. proposed a security best current practice draft at IETF [10] on cross-device flows with OAuth 2, which explains common attack vectors on cross-device flows.They recommend implementers to do a formal proof verification of developed concepts before implementing them.We address this by providing a specific solution for the example of EV charging authorization with a formal proof analysis.The concept may be applied to other applications where the authorized device has displaying capability and a Bluetooth, NFC, or UWB interface, e.g., when authorizing a streaming service on a smart TV.
51Maintainability and governance are important factors for largely scalable identity and access systems.Early approaches were adopted into the Lightweight Directory Access Protocol (LDAP, RFC 4511 [39]) by storing identity attributes on servers in a distributed hierarchy.Several extensions to the web standard SAML 2.0 [40] adopted the concept of a federation where identity providers allow Single Sign-On capabilities with trusted third-party identity providers.One relevant example is Shibboleth [41], which is often used by universities to allow students to sign in with their institution account to services of other universities.
52With OpenID Connect [11], a similar concept can be implemented, which is used by many websites to allow users to log in with their social media accounts, called social login [42].However, for the example of universities, this would require every university to add every other university as a trustworthy third-party OpenID provider.Since this does not scale well, the OpenID Foundation created the OpenID Federation draft [4], which solves many maintainability and governance issues by forming a trust hierarchy of trustful OpenID providers where every identity provider only needs to trust the hierarchy root, called the federation master.
IV. ANALYSIS AND REQUIREMENTS
53We assume an e-mobility system model with EVs, CPs, CPOs, and eMSPs as described in Section II-A.Based on this system model and considering relevant threat analyses from related work (cf.Section III-A), we derive an adversary model to cover realistic threats to the system in the following sub-section.Afterwards, we analyze the shortcomings of the ISO 15118 standard and their implications on usability and security.Finally, we define appropriate security and feasibility requirements, which should enable a solution to address the threats considered while achieving a satisfactory level of usability.
A. ADVERSARY MODEL
54In this paper, we consider the following kinds of adversaries:
55Local Adversary.We consider a local adversary with physical access to devices, specifically, to EVs and CPs, which are commonly left unattended in public areas for a long time.The adversary can physically tamper with the respective devices and extract or modify any local data unless it is tamper-protected.Network Adversary.We consider a network hacker according to the commonly used Dolev-Yao model [43].
56That is, an adversary with full control over network traffic who can arbitrarily send, drop, or modify any network data.However, the adversary cannot break cryptographic primitives unless they have access to the respective private keys.Adversary with Access to Leaked Backend Data.We consider an adversary with access to leaked backend data, i.e., the users' payment credentials.Since in the current e-mobility system, the billing-relevant contract credentials of all users are generated by the respective eMSPs, this is a serious problem.This opens up the unnecessary threat of a large-scale data leak at an eMSP, which would give the adversary access to the billing-relevant data of a large number of users.
B. ANALYSIS OF ISO 15118
57The PnC standard specified in ISO 15118, which we described in Section II-A, comes with shortcomings in the EV provisioning (cf.Section II-A3) and the contract credential installation (cf.Section II-A4) processes.We describe these shortcomings in the following.
1) EV PROVISIONING ISSUES
58In the EV provisioning process (cf.Section II-A3), the driver must retrieve the EV's unique digital identifier, the PCID, to register the EV at an eMSP.However, ISO 15118 does not propose a unified procedure for how the driver retrieves this PCID.As a result, implementations differ.Some OEMs provide the PCID in a companion app.Other OEMs display the PCID on the EV's infotainment display.The driver's next step is to register the EV at the eMSP with its PCID.Again, ISO 15118 does not propose a unified procedure.Some eMSPs provide an EV registration form in a dedicated mobile app or in the customer center of their website.Other eMSPs require a registration form sent by post or as a scan.Copying the PCID's alphanumeric characters from the EV to the eMSP's registration form can be errorprone, especially when the form is transferred as a printed paper sheet filled out by hand.Mistyping or misreading the PCID causes security risks because it may result in authorizing the wrong EV for charging.
59Many eMSPs also require an existing business relationship.Establishing this relationship sometimes takes several days because it requires interaction by post.This makes it impossible for drivers to spontaneously become a customer at the eMSP when standing at a charge point trying to take advantage of special discount offers.
60Furthermore, these EV-specific charging contracts are generally valid until billing at the end of the year and are automatically renewed if not terminated on time.Since deleting the contract certificate from an EV is also not specified in ISO 15118, it is often not even implemented.ISO 15118 only demands a maximum contract period of two years.This can be a severe problem for rental car drivers because drivers may not be able to revoke charging authorization of a rented EV after drop-off.
2) CONTRACT CREDENTIAL INSTALLATION ISSUES
61In the contract credential installation process (cf.Section II-A4), the EV sends a contract credential installation request to the CP.The CP forwards the request to the CPO, which forwards it to the CPS.The CPS should forward the request to the eMSP.However, ISO 15118 does not propose how the CPS identifies to which eMSP it must forward the request.The EV does not include this information in the contract credential installation request, and neither the CP, nor the CPO nor the CPS receives this information.
62Therefore, the VDE application guideline [2] tried to fill this gap by defining a centralized certificate pool to which the eMSPs upload contract credentials after contract conclusion.From a technical perspective, this certificate pool is a public registry which contains a mapping from an EV's PCID to the pre-registered contract credentials.The CPS therefore looks up this PCID from the contract certificate installation request.
63This comes with multiple privacy and security implications and administration efforts.First, the contract certificate installation request cannot be encrypted because the CPS must introspect the contained PCID.This reveals the personal information to the CP and the CPO.Second, to enable the CPS to look up the contract credentials for any PCID, this mapping must be publicly observable.This reveals the PCID of any EV and the corresponding contract certificate, with the contained contract ID and the issuing eMSP, in the registration process to the public.Third, because of the necessity to register the contract credentials before the EV requests them, the EV cannot generate the asymmetric key pair on its own.This is an explicit anti-pattern in modern cryptography because then the private key is also known by the eMSP, which could then theoretically fake charging operations to increase its revenue.Fourth, the certificate pool services must be operated and maintained.It is unclear whether this is in the responsibility of the OEMs, the eMSPs, the CPO, or the CPS.Fifth, standards should unify a process, but keeping relevant parts of a standard open causes the following issues.First, standardization gaps are filled either with proprietary solutions or with other standards.Proprietary solutions often contain security vulnerabilities, while gap-filling standards typically do not.However, gap-filling standards often appear as a multitude, which confuses implementers and also leads to implementation errors with security impacts.Second, the resulting variety of standardized and proprietary implementations confuses users because there is no clear solution.This leads to a bad user experience.
3) OVERALL ISSUES
64The EV provisioning (cf.Section II-A3) and contract credential installation (cf.Section II-A4) processes increase the complexity of the entire standard as follows.First, compared to the relatively simple communication effort for EV charging (red arrow in Figure 1), the setup process (blue arrows in Figure 1) is very exhaustive.Second, half of the trust chains in ISO 15118's Public Key Infrastructure (PKI) are caused by the contract credential installation process (see blue chains in Figure 2. Replacing both complexity-inducing processes with a user-friendly existing standard is therefore desirable.
C. REQUIREMENTS
65In the following, we define requirements for security (RS) and feasibility (RF).These requirements describe important features for a potential PnC credential management solution.We later use the defined requirements to evaluate our proposed concept (cf.Section VII-C).RS 1 Secure credential installation.Mutual authentication of data sent between CPS and EV for credential installation is required.RS 2 Fine-grained authorization.The solution must support authorization constraints, e.g., to define expiration times or charge amount limits for an EV's authorization.RS 3 Secure key storage.Private keys must be generated locally in a secure environment (e.g., an HSM in the EV) and must never leave it.RS 4 Crypto agility.The system must provide a mechanism to update or replace outdated or broken cryptographic algorithms securely.RS 5 Secure charge authorization.The authenticity of charge authorization requests sent from EV to CP must be ensured.
66RS 6 Charge data authenticity.The authenticity of charge data received as attested by the EV must be guaranteed towards the eMSP.RF 1 Minor overhead.The system should keep additional communication and computational overhead within the constraints of existing standards.RF 2 Simple integration.The system should not alter the message flow of existing protocols and only introduce minor changes to message content.RF 3 Improved usability.The usability of the proposed system should be improved by utilizing widely used standardized solutions.
V. PROVISIONING CONCEPT
67In this section, we introduce a new provisioning protocol based on OAuth 2.0.We introduce the terminology, provide a high-level overview of the general idea, and describe the individual parts of the proposed protocol in detail.
A. TERMINOLOGY
68We use the following terminology, which maps the OAuth 2 terminology to the EV charging system.Driver: For the sake of simplicity, we assume that the driver and vehicle owner are the same person who drives the car and pays the bills for charging.In OAuth 2 terminology, the driver is called the resource owner.Smartphone App: A mobile application running on the smartphone of the driver.In OAuth 2 terminology, it is called the User Agent (UA).Electric Vehicle (EV) : The car which is being authorized for charging.In OAuth 2 terminology, it is called the client.Identity Provider: The customer identity and access management system of the eMSP where the driver authorizes the EV for charging.In OAuth 2 terminology, it is called the Authorization Server (AS).Contract Issuing Service (CIS): An HTTP service provided by the eMSP to issue contract certificates to authorized EVs.In OAuth 2 terminology, it is called the resource server.To clarify the technical representation from an OAuth 2 perspective, we add the OAuth 2 terminology on the illustrations.
B. OVERVIEW
69The general goal of our protocol is a simplified contract certificate provisioning process to the EV, which can then be used to charge at every supported CP using the PnC standard.Figure 6 presents a high-level overview of the required components and their interactions, which are as follows:
701) The driver, i.e., the resource owner, pairs the smartphone app, i.e., the User Agent, with the EV, i.e., the client, via Bluetooth Low Energy (BLE) to establish a trusted connection (cf. Figure 8 in Section V-D).2) In the smartphone app, the driver chooses an eMSP and configures fine-grained authorization details to initialize a contract provisioning request to the EV (cf. Figure 9 in Section V-E).
713) The EV initializes an OAuth 2 device authorization flow through the Internet via HTTPS and thereby forwards these authorization details to the identity provider of the selected eMSP (cf. Figure 11 in Section V-F).4) The driver signs into the eMSP's identity provider, i.e., its AS, on the smartphone via HTTPS and checks the authorization details (cf. Figure 12 in Section V-G).This can also be done via OAuth 2 with a third-party payment provider.5) The EV requests an access token from the identity provider (cf. Figure 13 in Section V-I).6) The EV generates an asymmetric key pair, signs a contract certificate signing request, and uses the access token to request a contract certificate from the eMSP's CIS, i.e., the resource server (cf. Figure 14 in Section V-J).
72After this provisioning process, the EV authenticates itself against the CP with its contract certificate to start the charging process with PnC (cf.Section V-K).
C. OPENID E-MOBILITY FEDERATION
73As described in Section II-C, the OpenID Federation standard addresses many scalability issues and enables resource owners from one OpenID provider to authorize clients from another OpenID provider within the same federation.Therefore, we propose a worldwide OpenID e-Mobility Federation consisting of eMSPs and OEMs.The eMSPs provide identity providers, i.e., OpenID providers, where drivers, i.e., resource owners, authorize EVs, i.e., clients, provided by the identity providers, i.e., OpenID providers, of corresponding OEMs.The hierarchy of the OpenID e-Mobility Federation is depicted in Figure 7 and will be described in this section.
74In contrast to the simplified federation concept described in Section II-C, it consists of three instead of two hierarchy levels of OpenID providers.The root hierarchy level consists of a federation master which is provided and maintained by an alliance of OEMs, CPOs, and eMSPs.This federation master, named OpenID e-Mobility Federation Master, serves as a trustworthy authority for the entire ecosystem and maintains the federation by applying general policies to the intermediate OpenID providers below.The policies might contain restrictions, e.g., allow only the use of keys with sufficient strength like 4096-bit RSA keys.
75Using a single federation master on the first hierarchy level simplifies the maintenance of the trust hierarchy.Providing it with an alliance of several parties ensures democratic governance principles.Hosting a highly scalable OpenID provider has already been solved by big providers like Google or Microsoft.Moreover, the federation master requires only a reduced set of performance-critical features.For example, user logins and access token issuance are performed at eMSP's OpenID providers, client registrations are performed at the OEM's OpenID providers, which are both on the third hierarchy level (described later in more detail).
76The intermediate OpenID providers on the second level are the following.
77• The eMSP federation master, which maintains the OpenID providers of the eMSPs.It is maintained by an alliance of all eMSPs, e.g., energy providers.
78• The OEM federation master, which maintains the OpenID providers of the OEMs.It is maintained by an alliance of all EV manufacturers.This second level also improves maintenance by outsourcing eMSP-and OEM-specific decisions to specialist groups.
79Having this intermediate level in the OpenID provider hierarchy also improves the federation's scalability.Below the eMSP federation master, all eMSPs have their own OpenID provider.This allows them to issue identities to their customers (the drivers) by registering them as resource owners.To ensure that eMSPs are not able to issue any EV client identity, the federation master applies a policy to the eMSP federation master to issue resource owners only.This policy also applies to the eMSP OpenID providers.
80Below the OEM federation master, all the EV OEMs have their own OpenID provider.This allows them to issue identities to their manufactured EVs by registering them as a relying party.To ensure that OEMs are not able to issue any driver resource owner identity, the federation master applies a policy to the OEM federation master to issue clients only.This policy also applies to the OEM OpenID providers.
81On the level of these distributed OpenID providers, every OpenID provider can make decisions based on the policies of the OpenID providers in the hierarchy above.On this level, technical scalability is well explored and already deployed, as many eMSPs or energy providers already host an AS for their customers' self-service portals.
82CPOs do not need any OpenID provider here because, from an OAuth 2 perspective, they only provide resource servers which trust the federation master.This trust cascades down to the OpenID providers of the eMSPs, which issue access tokens to the EVs.So from a technical perspective, CPOs do not have to be part of the federation master organization's alliance.However, from an organizational perspective, they should be part of the alliance to strengthen trust in the OpenID e-Mobility Federation.
D. BLUETOOTH PAIRING
83Before the provisioning process starts, the driver pairs the smartphone with the EV via BLE as illustrated in Figure 8.To ensure confidentiality, integrity, and authenticity in the following BLE communication, the pairing process uses the numeric comparison pairing method for BLE secure connections.This numeric comparison pairing method is widely adopted and requires the driver to compare a six-digit code displayed on the smartphone with the code being displayed on the infotainment system of the EV.Since both devices compute this code from the negotiated encryption parameters, equality of both codes guarantees a secure connection and sufficiently mitigates Machine-in-the-Middle (MitM) attacks.After successful pairing, the BLE connection can be assumed to be encrypted end-to-end and mutually authenticated, given that the user has checked the six-digit code dutifully, as proved by Cäsar et al. [44].
E. CONTRACT PROVISIONING REQUEST
84After negotiating a secure BLE connection with the EV, the smartphone app initiates the contract provisioning request as illustrated in Figure 9. First, the app asks the driver to select the preferred eMSP ①.To this end, the app displays to the driver a list of all available eMSPs.From a technical perspective, this is the list of identity providers from all eMSPs being registered at the OpenID e-Mobility Federation Master.The smartphone app downloads this list via HTTPS directly through the Internet from a standardized endpoint of the federation master, which serves as the centralized trust authority maintaining the federation.To improve performance, the app may cache this list on its internal storage and update the cache regularly using HTTP-based cache refresh mechanisms.
85After selecting an eMSP, the driver adjusts the authorization details ②, e.g.:
86• The authorization period: The time period within the EV will be authorized for charging.This is especially important for rental cars.
87• The maximum charging volume per day: This limits the maximum number of kilowatt-hours the EV is authorized to charge per day.It limits the daily expenditure and also the damage caused by a stolen EV, or a leaked contract private key.
88Technically, this is a user-defined preparation of a RAR according to RFC 9396 [8] to implement fine-grained authorization.eMSPs are free to provide any fine-grained authorization options or may omit this feature.To announce available options to the smartphone app, the eMSP provides them in its identity provider's metadata during the registration process at the federation.
89After the driver has configured the authorization details, the smartphone app performs the contract provisioning request as illustrated in Figure 10.The app sends the selected eMSP along with the authorization details via the secure BLE connection to the EV ③.The EV forwards the authorization details ④ as a device authorization request (cf.Section V-F) to the selected eMSP's AS from which it receives a device code and a user code along with a verification URI.The EV remembers the device code for later and responds through the secure BLE connection to the app's request with a contract provisioning response containing the user code along with the verification URI ⑤.
90Sending the user code through a previously authenticated channel (the BLE connection) ensures a secure transmission between EV and smartphone app.This protects the protocol from multiple attack vectors where the user code is transferred through an unauthenticated channel (cf. the description in the RFC draft "Cross-Device Flows: Security Best Current Practices" [10]).One example of such an attack is the manipulation of user code within a QR code by an attacker, which is shown on a screen.Furthermore, this user code must be a one-time code with a short lifetime.This helps protect against attacks where a malicious QR code is pasted over a static QR code [45].
F. DEVICE AUTHORIZATION REQUEST
91The device authorization request is illustrated in Figure 11.After the EV received the contract provisioning request, it initiates an OAuth device authorization flow by sending a device authorization request as standardized in RFC 8628 [7] via HTTPS through the Internet to the identity provider ①.To access the Internet, the EV can use any kind of connectivity, e.g., a cellular network, a WiFi hotspot, or even a PLC of a plugged CP via value-added services.In the authorization request, the EV forwards the device authorization details obtained from the smartphone app and adds the required scope for requesting a contract certificate.
92When receiving the device authorization request, the identity provider must authenticate the EV by its OAuth 2 client credentials and allow the driver to verify that the requesting client is the EV in which the driver sits.Therefore, the following process is required when the OEM produces the EV: First, the EV generates a non-exportable private key inside its HSM.Then, the OEM must register the EV with its corresponding public key as an OAuth 2 client at its own identity provider, which is part of the proposed OpenID e-Mobility Federation.Besides the EV's public key, the OEM must add the EV's unique Vehicle Identification Number (VIN) to the registered client metadata.The registered public key allows the eMSP's identity provider to authenticate the EV with the private_key_jwt authentication method, 168722 VOLUME 13, 2025 Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.
93which replaces the provisioning certificate of the PnC standard.The registered VIN will become relevant in step 4 described in Section V-G.It allows the driver to match the EV's digital identity (its key pair) with its physical identity (the VIN).
94After successful client authentication, the eMSP's identity provider generates a short-lived device code and a shortlived one-time user code.The identity provider then stores the verified client ID, the requested scope, and authorization details along with the device code and the user code in an internal database ②.In addition to the device code and the user code, the identity provider also responds to the EV ③ with a verification URI which refers to the authorization page with the user code embedded as a query parameter.The EV then starts polling the identity provider's token endpoint ④ until it gets a successful token response.
G. AUTHORIZATION REQUEST
95The smartphone app must now ask the driver for authorization, as illustrated in Figure 12.
96When the smartphone app receives the verification URI with the user code as a query parameter, the app opens the verification URI at the authorization endpoint of the chosen eMSP's identity provider in a browser instance ①.On this web page, the identity provider first authenticates the driver ②.The driver does this with any credentials the driver and eMSP have negotiated before, e.g., with a username, a password, and a second factor like a time-based one-time password.As described in Section V-H, the driver may also log in with a third-party payment provider by authorizing the eMSP for billing the charging fee in a standard OAuth 2 authorization flow.Suppose the driver already has an active session with the eMSP or payment provider.In that case, the manual authentication process will be skipped or replaced by a dialogue asking whether to use the logged-in account or switch to another account.
97After the driver successfully signs in, the eMSP's identity provider displays an authorization screen.To display this screen, the identity provider uses the user code from the URI query to look up the authorization details, scope, and the requesting client ID, which were registered in the internal database after the device authorization request.The driver is recommended to review the presented information carefully:
98• A malicious EV may have mutated the authorization details when forwarding them from the smartphone to the identity provider.Therefore, the driver must check whether the presented authorization details still match the ones configured on the smartphone.
99• A malicious EV may have requested a broader scope than required for requesting a contract certificate.Therefore, the driver must ensure that only the minimal required scope is granted.
100• A manipulated EV may have requested authorization for an attacker's EV.Therefore, the driver must verify that the client ID of the requesting EV matches a unique physical identifier of the driver's own EV.A common example of a unique physical EV identifier is the VIN, which the driver can look up in the vehicle documents and on a label on the chassis.As described in Section V-F, the OEM includes this VIN along with the public key from the EV's HSM in the client metadata when registering the EV after its production in the proposed OpenID e-Mobility Federation.This client metadata is a JWT signed by the OEM.The identity provider verifies that the metadata document is signed by a trusted OEM within the federation and that the requesting EV was successfully authenticated by proving possession of the corresponding private key.In the authorization screen, the identity provider presents the driver the VIN from the metadata.The driver then compares the requesting EV's VIN displayed on the authorization screen with the VIN labeled on the EV's chassis.This ensures that the driver does not authorize another EV.Experience shows that such manual verification processes, where users can simply click the "Confirm" button, are not a good security barrier as lazy users often skip the comparison step.Therefore, authors of this document recommend the implementation of a visual verification method where the user must scan the VIN with their smartphone camera before the process continues.
101When the driver grants the authorization request, the identity provider remembers this decision for the next token request poll by the EV.
H. THIRD-PARTY LOGIN WITH PAYMENT PROVIDER
102Instead of logging in with an existing eMSP account, the eMSP may also offer the driver to sign in with a third-party payment provider that the eMSP trusts.This enables drivers to quickly become a customer of an eMSP without registering at the eMSP and without the need to remember dedicated access credentials.In some countries, citizens can sign in with their bank account, like with BankID in Norway.
103Another option could be signing in with a payment provider to authorize the eMSP with an OAuth authorization flow to perform payment transactions.The PayPal Express Checkout button in online shops is a popular example for this.The OpenBankingUK standard even standardizes such an OAuth-based authorization flow for payment transactions, and many banks in the UK implement it to turn themselves into a convenient online payment service.Using such an OAuth-based authorization flow will be a user-friendly way to negotiate payment information while becoming a new customer of the eMSP.
104Since this payment authorization is optional and would be implemented with a standard OAuth 2.0 authorization code flow as defined in RFC 6749 [3], we declare this as out of scope of this document and will not go into detail here.
I. DEVICE ACCESS TOKEN REQUEST
105After the driver has authorized the EV at the eMSP's identity provider, the EV requests an access token from this identity provider through the Internet, as illustrated in Figure 13.This access token will authorize the EV to request a contract certificate from a service of the eMSP that we call CIS.
106To request an access token ①, the EV provides the device code obtained from the identity provider in the device authorization response.In addition, the EV provides a new private_key_jwt that it signs with its private key from the HSM to be authenticated by the identity provider as the authorized client.If the driver has already granted the authorization request ②, the identity provider responds to the EV with an access token ③.
107Since the EV does not know when the driver grants the authorization, the EV sends a device access token request to the identity provider after sending the contract provisioning response to the smartphone app.Most likely, the first request will fail because the driver probably did not sign in and grant permissions to the EV immediately after the smartphone app has opened the verification URI.The EV then repeats sending such device access token requests in short time intervals of 5 seconds until a request succeeds.
J. CONTRACT CERTIFICATE REQUEST
108The access token from the eMSP's identity provider authorizes the EV to request a contract certificate from the eMSP's CIS as illustrated in Figure 14.
109To avoid reusing existing key pairs, the EV generates a new asymmetric key pair inside its HSM ①.After that, the EV creates a Certificate Signing Request (CSR) ② which contains the newly generated public key, signed with the corresponding private key.The EV then sends a contract certificate signing request ③ via HTTPS through the Internet to the CIS and adds the access token to this request as a bearer token in the Authorization header.This CIS endpoint can be looked up by the EV from a custom field in the identity provider's metadata at the OpenID e-Mobility Federation Master.
110The CIS is a web service by the eMSP dedicated to verifying CSRs ④ and issuing contract certificates ⑤.In the context of OAuth 2, it acts as a resource server which provides access to the protected resource contract certificates.It can be compared with an intermediate certificate authority (the eMSP) which issues X.509 certificates (the contract certificate) to clients (the EV).To protect the eMSP's private key used for signing contract certificates, the CIS should store the private key inside an HSM.The CIS thereby obsoletes the CPS.
K. CONTRACT CERTIFICATE USAGE, REVOCATION, AND UPDATES
111After receiving the contract certificate, the EV can use its contract credentials, i.e., key pair and corresponding certificate, for PnC as standardized in ISO 15118.In other words, this OAuth-based PnC extension proposal only affects the installation of the EV's contract certificate.It does not add any additional requirements to the rest of ISO 15118's PnC infrastructure.The only difference for the EV is that signature creation now requires an interaction with its HSM.More specifically, the EV can use its HSM-protected credentials for PnC authentication and to sign meter readings at the CP, as described in Section II-A, without requiring the CP to support OAuth 2 in any way.
112Similarly, the processes of contract certificate revocations and updates remain mostly as they are standardized in ISO 15118.That is, certificate revocations can still be generated by the eMSP/certificate issuer and received by the CP for revocation checks during certificate validation.Contract certificate updates and key rotations of the EV's contract keys can be implemented, in principle, as standardized in ISO 15118.For this purpose, a new key is generated, and the credential installation process is repeated.Our concept only differs in that the contract key is being generated in the EV's HSM, and the credential installation process is done as described in the prior sections.
VI. IMPLEMENTATION
113We implemented the concept described in Section V and published a prototype on GitHub [46].The architecture of the prototype is depicted in Figure 15.Its components are described in this section.
114The EV is simulated with a Raspberry Pi 3B with a quadcore 1.2 GHz ARM Cortex-A53 CPU that runs a Docker composition [47] of the required services.While there is variance among manufacturers, the Pi board represents a realistic hardware setup [23].For example, the Pi board is comparable in performance to a real EV charging communication controller, the Gridwiz EVCC [48], that uses an ARM Cortex-A7 CPU (1-4 cores running at 1.2-1.6GHz [49]) and supports ISO 15118.Additionally, the Pi boards can be compared to vehicular Electronic Control Units (ECUs) such as an infotainment unit in the ARM Cortex-A performance class [50] (e.g., [51] with a dual ARM Cortex-A15 at 1.2 GHz).
115BLE communication between the smartphone and the EV is implemented with an HTTP connection, transmitted through the Bluetooth HTTP Proxy Service [52].The proxy is therefore implemented as a Python [53] script.The authorization-specific EV software (called EV backend) implementation is a containerized application developed in Go [54] and a Traefik [55] reverse proxy in front.
116The user agent is an Angular Web application [56] written in TypeScript [57] running on the driver's smartphone.It utilizes Chromium's Web Bluetooth API [58] to connect the driver's smartphone to the EV.
117The eMSP is a server that runs a Docker composition [47] of the required services.The eMSP AS is a containerized service written in PHP [59] provided by Nginx [60] that utilizes the Cloud-based Authlete Authorization Server API [61].The eMSP backend is a containerized service that implements the resource server written in Go that signs the CSR using the OpenSSL [62] command line interface.A Traefik [55] reverse proxy in front of the eMSP backend and AS manages TLS certificates and validates the EV's access token when requesting endpoints on the eMSP backend.
VII. EVALUATION
118In this section, we present the results of the performance evaluation, describe the tool-based automated formal security verification, and discuss how the proposed solution can meet the requirements defined in Section IV-C. A. PERFORMANCE EVALUATION goals of the performance evaluation are as follows.1) Measuring the memory consumption and CPU utilization on the EV software to estimate additional hardware requirements induced by this approach.2) Measuring the data volume requirements for Internet connections by the EV to estimate the additional costs for OEMs.3) Identifying the processing durations of steps without user interactions to estimate the impact of data transfers and data processing on the user experience and to identify time-consuming steps.The proof-of-concept implementation was evaluated on the following hardware by manually clicking through the setup 50 times.The EV software was thereby running on a Raspberry Pi B3 1 GB with Raspberry Pi OS (Debian 12.7 64-bit), the user agent was running in Chrome 128 on a Google Pixel 6 with Android 14, and the eMSP software was running on a Lenovo ThinkPad T14s G1 Ryzen 5 PRO 4650U with Windows 11 Pro 23H2 in WSL2.
119The memory consumption and CPU utilization were measured with the docker stats command periodically during the execution.The results are compiled in Figure 16 and Table 3.We derive a memory requirement of at most 15 MB for the EV backend plus 75 MB for the reverse proxy and BLE proxy combined, if not already implemented.The four cores of the Raspberry Pi 3B's CPU (max: 400 %), never exceeded 21 %, not even by the elliptic curve key generation and signing process with the P521 curve which instead only led to a shorter idle time of the EV backend compared to the BLE proxy, as indicated by their 95% quantiles compared to their maximum CPU utilization.Instead, the reverse proxy induced the highest CPU utilization, which indicates a very good performance of the EV backend.
120To measure the traffic between the EV backend and the eMSP AS and backend, which must be transferred through the Internet, we used tcpdump to dump the Pi's traffic over network interface eth0, and filtered it with Wireshark.The total traffic was 434,297 bytes, which corresponds to an average data volume of 8,686 bytes per authorization.This includes the HTTPS communication, including TCP, IP, and Ethernet headers as well as TLS handshakes, but excludes corresponding communications to other parties such as DNS or ARP certificate validity verifications, or telemetry data transfers.However, because of TLS 1.3's 0-RTT feature, the TLS handshakes to the AS and the resource server were omitted after the first communication.The polling mechanism of the Device Authorization Flow might increase the traffic slightly.This additional data volume required by the OAuth extensions is negligible compared to the fact that the HTML body of www.google.com is about 25 kilobytes long.
121We measured the execution times of relevant processing steps on the EV, the AS, and the resource server, which do not involve user interaction.Figure 17 illustrates the results.The measurements start with the device authorization (① avg.0.468 s) on the EV after it received the authorization details.Almost all of the execution time is caused by the AS (② avg.0.449 s).After the user was authenticated and has authorized the EV (③ depending on user interaction speed), the AS processes the authorization response (④ avg.0.449 s).After waiting for 5 seconds ⑤, the EV sends the token request to the AS (⑥ avg.0.431 s) to obtain a valid token before it starts generating the asymmetric key pair and creating the certificate signing request (⑦ avg.0.140 s).Signing the contract certificate (⑧ avg.0.026 s) is faster because the ThinkPad has more CPU power, and it does not need to generate a key pair.
122This shows that our implementation performs well even on the weak hardware of the Raspberry Pi 3B, and the performance overhead induced by the issuance of the contract certificate by the eMSP backend is negligible.The most significant time impacts are the waiting times for the user to interact with the AS.The relatively large processing times of the AS are caused by the network latency to the Authlete Cloud API, which is caused by the average ping of 130 milliseconds in the testing environment.In conclusion, it can be stated that the proposed solution performs well and causes minimal overhead.
B. FORMAL SECURITY VERIFICATION
123We analyze the security of the proposed protocol in the symbolic model, also called the Dolev-Yao model [43].
124Hereby, the adversary has full control over the network.Additionally, cryptographic primitives are assumed to be perfectly secure, i.e., cannot be broken without knowing the respective private key.Specifically, the formal security analysis focuses on the authentication properties of the OAuth-based credential installation protocol (RS 1 ).Other security requirements are discussed in Section VII-C.
125The symbolic security verification is performed with the Tamarin prover [9].Tamarin is a state-of-the-art tool for automated security protocol analysis.With Tamarin, a protocol is modeled via a set of rules that define the communication and data processing steps.Additionally, security properties are modeled via lemmas that must hold for all possible execution traces of the model.Afterwards, Tamarin starts in a state where the lemma was violated and performs an exhaustive backward search.If a valid execution trace is found that violates the lemma, this trace serves as a counterexample, i.e., a possible attack.Otherwise, the security property is shown to hold.
126For the verification of strong authentication properties, we adopt the commonly used notion of injective agreement:
127Definition 1: [Injective Agreement] A protocol guarantees injective agreement to an honest initiator A with an honest responder B on a set of data items ⃗ ds if, whenever A, acting as initiator, completes a run with the protocol, apparently with responder B, then B has previously been running the protocol, apparently with A, and B was acting as a responder in this run.Moreover, each run of A corresponds to a unique run of B and both agents agree on the values of the variables in ⃗ ds.[63] For our Tamarin model, any of the user's interactions with their user-agent are assumed to be secure.Furthermore, any long-term secrets (e.g., private keys or passwords) of actors involved in a specific protocol run are assumed to be secure.Hence, to keep the needed assumptions as weak as possible, any actors that are not directly involved in a specific protocol run can be compromised.For example, the security of a protocol run with eMSP A should not be compromised by a key leak at eMSP B. The establishment of a shared symmetric key during Bluetooth pairing is modeled as per the most recent Bluetooth core specification [64].The establishment of symmetric keys during the TLS handshakes is modeled as key encapsulations based on the eMSP public key for simplicity.This includes the TLS handshakes between user-agent and eMSP as well as EV and eMSP; both with unilateral authentication by the eMSP.Any other communication and data processing steps of the proposed protocol are modeled as described in Section V. Our full Tamarin model definition can be found online [46].
128As mentioned, we mainly focus on the verification of strong authentication properties for the installation of contract credentials based on the notion of injective agreement.This notion can be transferred to our use case in the form of a Tamarin lemma as shown by the example Listing 1 in Section VIII.
129Besides the injective agreement lemma to prove secure authentication, the model also includes verifications of intermediate steps and weaker security properties based on Lowe's hierarchy of authentication properties [63].The model further includes several correctness lemmas, i.e., lemmas that verify that the correct/expected execution of the model is possible to avoid false security proofs by an erroneous model.Additionally, we include several performance optimizations for the automated proofs to terminate within an acceptable time, such as reuse lemmas (which can provide partial proofs for reuse in later lemmas) and an oracle (which guides the automated proof execution, affecting runtime but not correctness).
130The automated symbolic analysis with Tamarin and the model shows that the proposed protocol satisfies the security properties as no counterexamples are found.Specifically, the analysis shows that injective agreement over the contract credentials holds between EV and eMSP during credential installation.The injective agreement is shown to hold in both directions, i.e., installation request and response.Results of the automated symbolic analysis and details on how to recreate the evaluation results with the Tamarin prover can be found online [46].The verification of all lemmas with automatic source generation was completed in a total of 293, 255 proof steps.
C. REQUIREMENT DISCUSSION
131In the following, we discuss how the proposed solution can address the requirements for security (RS) and feasibility (RF) from Section IV-C.An overview is provided in Table 4. Starting with the security requirements, secure credential installation RS 1 can be ensured as shown in the formal verification from Section VII-B.Fine-grained authorization RS 2 is supported by the usage of RARs as discussed in Section V-E.Secure key storage RS 3 is enabled by the usage of an HSM in the EV (cf.Section V-J).Since the proposed solution does not rely on specific algorithms, crypto-agility RS 4 is given because the OAuth 2 framework already enables it by interchangeable state-ofthe-art crypto algorithms.Additionally, the proposed solution supports secure charge authorization RS 5 and charge data authenticity RS 6 with the default ISO 15118 processes.For formal/provable security in RS 5 and RS 6 , existing approaches can be used as discussed in Section V-K.
132Regarding feasibility requirements, the proposed solution only generated minor overhead RF 1 as shown in Section VII-A.We argue that the simple integration requirement RF 2 is met since the OAuth 2-based credential installation process works with default OAuth 2 methods, and after installation, credentials can be used as usual for ISO 15118 (cf.Section V-K).Additionally, the installation traffic can be tunneled via an ISO 15118 value-added service, which enables restricted Internet access via PLC and therefore simplifies the integration because no cellular network access is required.Finally, we argue that the proposed solution provides a great usability RF 3 because it introduces an app-guided setup flow based on open standards, which is similar for each combination of EV model and eMSP.This flow uses familiar interaction concepts like scanning a QR code, choosing an eMSP from a list, logging in with an existing eMSP account, comparing security numbers on two screens, and authorizing an OAuth 2 client.Instead of the eMSP account, drivers can also log in with OAuth 2 through a payment provider, like when using the express checkout feature in an online shop.Furthermore, the proposed solution can obsolete some of the ISO 15118 PKI requirements (cf. Figure 2) since it does not need the OEM and CPS certificate chains.Essentially, the OEM chain is replaced by the user's OAuth 2 authentication and the CPS chain by the OAuth 2-based contract credential installation.
D. PROPOSED CREDENTIAL INSTALLATION PROCESS AND ITS RELATION TO ISO 15118
133The ISO 15118 standard left relevant parts of the credential installation process open, which were fixed partially by the VDE application guideline [2].With the proposed solution, we solve the issues of the PnC standard revealed in Section IV-B by replacing the entire credential installation process with existing OAuth 2 standards as follows.
134In ISO 15118, the driver had to read out the EV's digital identifier (the PCID) and register it to an eMSP manually.This resulted in unreliable information transfers, which causes security issues.In our approach, the OEM registers each EV's individual public key and VIN in the OpenID e-Mobility Federation.Drivers use this VIN to identify the EV which is being authorized.The VIN thereby serves as a replacement for the PCID, which comes with three advantages.First, the VIN has been used to uniquely identify vehicles for decades.Therefore, the VIN is a more convenient vehicle identifier and does not increase the complexity by introducing another identifier.Second, compared to the PCID, the VIN identifies the actual physical identity of the vehicle.This allows identifying the EV even when the infotainment software of the EV is being manipulated to display the attacker's EV's PCID.Third, instead of potentially mistyping the EV's PCID in the registration process, drivers only verify that their EV's VIN matches the VIN of the EV whose identity the eMSP's identity provider has already verified.This simplifies the registration process and prevents mistyping errors.We thereby solve potential issues related to the retrieval of and to the EV registration with a PCID.This reduces complexity, improves usability, and increases security.
135The EV registration process at an eMSP typically requires an existing business relationship that is sometimes exhaustive to establish, because it may require manual registration by post.We solve this issue by allowing drivers to log in to eMSPs in the EV authorization process with third-party payment providers using OAuth 2.0.
136For technical reasons, in ISO 15118, the EV's unique identifier (the PCID) is revealed to the CP and the CPO during the contract certificate installation process.To identify the driver's preferred eMSP, the CPO accesses a public mapping from PCIDs to eMSPs.The proposed solution based on OAuth 2 is more privacy-preserving because both the EV authorization process and the contract credential request can only be introspected by trusted parties.
137Not having to publicly reveal the mapping of an EV identifier to the eMSP under retention of interoperability between every EV and every eMSP was enabled with an OpenID e-Mobility Federation.This allows obsoleting the trust chains of PnC's PKIs.The reason for this is that an OpenID Federation already solves the issue of authorizing a client (the EV) from multiple OEMs at every OpenID provider (the eMSP's identity provider) within the federation.In our solution, drivers also benefit from OpenID Federation's underlying OAuth 2 authorization flow, which implements a familiar guided process to authorize their EV for charging.
E. CROSS-DEVICE AUTHORIZATION
138The main advantage of using a cross-device authorization flow is that drivers do not have to log in to an eMSP on the EV.Instead, drivers log in on their smartphones.From a usability perspective, this is easier for drivers because they can reuse an existing session on their smartphone at the eMSP's website.If there is no active session, drivers can use their phone's password manager to simplify the login process and avoid dealing with the EV's limited input capabilities.From a security perspective, the Device Authorization Grant RFC 8628 [7] protects drivers from potentially manipulated EV software stealing their eMSP account's access credentials or session identifiers.This is especially relevant if the EV is a rental car or a pool car with frequently changing drivers.
139The latest "Cross-Device Flows: Security Best Current Practice" IETF draft [10] recommends preferring alternatives over the used Device Authorization Grant RFC 8628 [7], e.g., the OpenID Connect Client-initiated Backchannel Authentication (CIBA) [37], or the FIDO2 [38] standard.However, CIBA requires an authentication device that is pre-registered at the eMSP account of the driver.This is not possible if the driver spontaneously wants to become a new customer at an eMSP by signing in with a third-party payment provider without any existing eMSP account.In turn, FIDO2 does not mitigate the risk of a manipulated EV software stealing session credentials because it can only be used to sign in on the compromised EV to the eMSP account.The attacker would then have full control over the session and can also authorize many other EVs.
140The reason why the IETF BCP draft [10] authors recommend alternatives is that the Device Authorization Grant is hard to protect against various attacks.To mitigate all attack vectors, the authors recommend a formal proof verification for the individual solution, which we describe in Section VII-B.Since this formal proof applies to all solutions that correspond to an equivalent security model, we are confident that this proposal can serve as a blueprint for scenarios beyond EV charging authorization.In general, the model can be applied to every scenario where a potentially manipulated Internet-and Bluetooth-capable device (the EV) and sufficient Bluetooth connection verification capabilities (e.g., a six-digit numeric comparison code) are authorized from a smartphone.
F. REAL-WORLD DEPLOYMENT CHALLENGES
141Deploying the proposed charge authorization infrastructure on a worldwide scale comes with technical and organizational challenges, which will be discussed here.Technical challenges are separated into hardware and software challenges.
142One technical hardware challenge is the additional compute performance requirement on servers and on EVs.Thanks to highly scalable public clouds, server performance has become a question of operational cost, making it an organizational challenge (see later).As discussed in Section VII-A, additional performance requirements on EVs are very low and can therefore be assumed as solved.Another hardware requirement is the availability of a Bluetooth interface for communication between the EV and the driver's smartphone app.The EV must also be able 168728 VOLUME 13, 2025 Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.
143to display a six-digit code to establish a secure Bluetooth connection.Both requirements are fulfilled in all basic configurations of modern EVs.Moreover, the EV requires Internet communication capabilities.This is solved for all EVs which receive over-the-air updates via cellular or WiFi networks.As fallback, the PLC standard can be used when the EV is plugged into a CP.
144Technical software challenges are the interoperability and adoption of required software running on EVs, smartphone apps, and eMSPs.By filling gaps in the PnC standard, the proposed standard improves interoperability in general.This motivates OEMs to adopt this fully specified standard instead of developing proprietary solutions, causing incompatibilities and bad user experiences.Usability improvements to switch eMSPs more quickly motivate eMSPs in adopting the standard to attract more customers.Drivers thereby benefit from fair market competition resulting in lower EV charging prices.This increases the demand of EVs which implement the standard, motivating OEMs for adoption.
145Organizational challenges lie in founding and operating the OpenID e-Mobility Federation in a fair manner where no single provider has the power to arbitrarily exclude eMSPs, CPOs, or OEMs from the federation.As described in Section V-C, this can be achieved by founding and operating the OpenID e-Mobility Federation as a consortium of all eMSPs, CPOs, and OEMs, being an equally involved stakeholder.This ensures a fair distribution of power and operating costs.The OpenID Federation hierarchy described in Section V-C also ensures duty separation and sovereignty between eMSPs and OEMs.
VIII. CONCLUSION
146In this paper, we identified shortcomings of future EV charging concerning usability and security.The most important shortcoming is that the comfortable PnC technology is only partially standardized in ISO 15118.Especially the missing standardization effort in the EV registration process at the eMSP has led to a complex and inconvenient setup process.We presented a whole new registration process based on the widely adopted authorization standard OAuth 2, its extensions, and the OpenID Federation standard, to address these issues.This approach improves usability by introducing an app-guided installation process, which operates seamlessly across various combinations of eMSPs and EVs, leveraging familiar user interaction patterns.The proposed installation process thereby enables users to easily become customers of different eMSPs by signing in with a third-party payment provider.Security is further enhanced through fine-grained authorizations enabled by OAuth 2's Rich Authorization Requests and by an end-to-end verification of the authorized EV's identity.With our opensource implementation, we demonstrated that the deployment of this approach is feasible in a real-world scenario.As a result, the large complexity of multiple specific services and the use of multiple PKIs can be replaced by eMSPs and OEMs, forming the proposed OpenID e-Mobility Federation.
147With the Tamarin-based formal protocol verification, which we made publicly available, we also proved that the approach fulfills all relevant security properties.This underlines that the OAuth 2-based Device Authorization Grant was applied securely.This allows the overall approach can be used as a blueprint for similar scenarios where an IoT device needs to be authorized from a smartphone.
148Listing 1. Tamarin Lemma for injective agreement between the eMSP and the EV for credential installation.
149with the same public key to the same eMSP (lines 5-8).Moreover, each accepted public key by the eMSP corresponds to a unique request (lines 9-12).These security properties may only be violated if the long-term secrets of one of the parties involved in the specific protocol run were leaked (line 14).Injective agreement in the reverse direction is modeled analogously over the contract certificate generated by the eMSP and accepted by the EV.
FIGURE 1 .
150FIGURE 1. PnC authorization architecture.
FIGURE 2 .
151FIGURE 2.Public Key Infrastructure introduced by ISO 15118 (cf.[1]).
FIGURE 3 .
152FIGURE 3. OAuth 2 device authorization flow.
FIGURE 4 .
153FIGURE 4. OAuth 2 resource request.
FIGURE 5 .
154FIGURE 5. OpenID Federation trust hierarchy.
FIGURE 6 .
155FIGURE 6.High-level overview of the proposed provisioning process.
FIGURE 7 .
156FIGURE 7. Proposal for the OpenID e-Mobility Federation.
FIGURE 8 .
157FIGURE 8.Step 1: Driver pairs the smartphone app with the EV.
FIGURE 9 .
158FIGURE 9.Step 2: Driver selects an eMSP and specifies authorization details.
FIGURE 10 .
159FIGURE 10.Step 3.1: Smartphone app sends a contract provisioning request via BLE to the EV and awaits response.
FIGURE 11 .
160FIGURE 11.Step 3.2: EV sends a device authorization request to the eMSP's identity provider.
FIGURE 12 .
161FIGURE 12.Step 4: Smartphone app sends an authorization request to the eMSP's identity provider.
FIGURE 13 .
162FIGURE 13.Step 5: EV successfully polls an access token request from the identity provider.
FIGURE 14 .
163FIGURE 14.Step 6: EV uses an access token for a contract certificate request from the eMSP's CIS.
FIGURE 15 .
164FIGURE 15.Architecture of the prototype implementation.
FIGURE 16 .TABLE 3 .
165FIGURE 16.Memory consumption (stacked) and CPU utilization (not stacked) of the EV software by services over evaluation time.
FIGURE 17 .
166FIGURE 17. Evaluation of processing times.
TABLE 1 .
167Summary of the terminology in the standards.
TABLE 2 .
168Summary of the standard capabilities.
TABLE 4 .
169Differences to the existing solution.
참고문헌 30건
- The OAuth 2.0 Authorization Framework 2012 10.17487/rfc6749
- OAuth 2.0 Rich Authorization Requests 2023 10.17487/rfc9396
- The TAMARIN Prover for the Symbolic Analysis of Security Protocols Lecture notes in computer science · Springer Science+Business Media · 2013 10.1007/978-3-642-39799-8_48
- Attack Surface Assessment for Cybersecurity Engineering in the Automotive Domain 2021 10.1109/pdp52278.2021.00050
- A Detailed Security Assessment of the EV Charging Ecosystem IEEE Network · Institute of Electrical and Electronics Engineers · 2020 10.1109/mnet.001.1900348
- Securing Electric Vehicle Charging Systems Through Component Binding Lecture notes in computer science · Springer Science+Business Media · 2020 10.1007/978-3-030-54549-9_26
- Analysis of E-Mobility-based Threats to Power Grid Resilience 2021 10.1145/3488904.3493385
- TrustEV 2020 10.1145/3341105.3373879
- HIP Proceedings of the 17th International Conference on Availability, Reliability and Security · 2020 10.1145/3407023.3407066
- HIP-20: Integration of Vehicle-HSM-Generated Credentials into Plug-and-Charge Infrastructure 2020 10.1145/3385958.3430483
- Securing the Information Infrastructure for EV Charging Springer eBooks · Springer Nature · 2015 10.1007/978-3-319-25479-1_5
- Non-Repudiation and End-to-End Security for Electric-Vehicle Charging 2021 IEEE PES Innovative Smart Grid Technologies Europe (ISGT Europe) · 2019 10.1109/isgteurope.2019.8905444
- QuantumCharge: Post-Quantum Cryptography for Electric Vehicle Charging Lecture notes in computer science · Springer Science+Business Media · 2023 10.1007/978-3-031-33491-7_4
- EVChain: A Blockchain-based Credit Sharing in Electric Vehicles Charging 2019 10.1109/pst47121.2019.8949026
- EVchain: An Anonymous Blockchain-Based System for Charging-Connected Electric Vehicles Tsinghua Science & Technology · Tsinghua University Press · 2021 10.26599/tst.2020.9010043
- Privacy-preserving blockchain-based electric vehicle charging with dynamic tariff decisions Computer Science - Research and Development · Springer Science+Business Media · 2017 10.1007/s00450-017-0348-5
- Exploring Potential Impacts of Self-Sovereign Identity on Smart Service Systems Business Information Systems · TIB Open Publishing · 2021 10.52825/bis.v1i.68
- With or Without Blockchain? Towards a Decentralized, SSI-based eRoaming Architecture Proceedings of the ... Annual Hawaii International Conference on System Sciences/Proceedings of the Annual Hawaii International Conference on System Sciences · 2022 10.24251/hicss.2022.562
- Self-sovereign Identity for Electric Vehicle Charging Lecture notes in computer science · Springer Science+Business Media · 2024 10.1007/978-3-031-54776-8_6
- Portunes+: Privacy-Preserving Fast Authentication for Dynamic Electric Vehicle Charging IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2016 10.1109/tsg.2016.2522379
- Efficient and privacy preserving supplier matching for electric vehicle charging Ad Hoc Networks · Elsevier BV · 2018 10.1016/j.adhoc.2018.07.029
- Integrating Privacy into the Electric Vehicle Charging Architecture Proceedings on Privacy Enhancing Technologies · De Gruyter Open · 2022 10.56553/popets-2022-0066
- Anonymous Charging and Billing of Electric Vehicles Proceedings of the 17th International Conference on Availability, Reliability and Security · 2018 10.1145/3230833.3230850
- A secure and privacy-preserving payment system for Electric vehicles 2015 10.1109/icc.2015.7249489
- Evaluation of electric mobility authentication approaches 2021 10.1145/3488904.3493384
- Secure smartphone-based registration and key deployment for vehicle-to-cloud communications 2013 10.1145/2517968.2517970
- Lightweight Directory Access Protocol (LDAP): The Protocol 2006 10.17487/rfc4511
- On the security of public key protocols IEEE Transactions on Information Theory · Institute of Electrical and Electronics Engineers · 1983 10.1109/tit.1983.1056650
- A survey on Bluetooth Low Energy security and privacy Computer Networks · Elsevier BV · 2022 10.1016/j.comnet.2021.108712
- A hierarchy of authentication specifications 2002 10.1109/csfw.1997.596782