Comments (4)
Correct - in this case the simulator is trying to simulate what Hubject would do - fetch the contract, related chain etc for the EV and base64 encode the CertificateInstallationRes which the CS would then forward to the EV. If you are using the evcc simulator and wish to skip this step (which would be the case if the evcc has the required certificates already) , you could change the return value in is_cert_install_needed() to False
from iso15118.
Thank you for your response. Sorry, I didn't understand your explanation completely. I understand that I can turn off the initial certificate installation. But in case I want it, how should it work? Isn't it like this:
The EVCC creates the certificate installation request, signs it using it's OEM provisional private key, then sends it to the SECC. The SECC signs it using it's own key and then forwards it to the MOSubCA2. The MOSubCA2 then processes the message, creates the contract certificate along with the contract private key, encrypts it using the EV's OEM public key, signs it using it's own private key, then sends it to the SECC. The SECC forwards it to the EV. The EV can decrypt it using it's oem private key and get the contract cert.
If it is like this, then there is no need for the SECC to hold the contract key of the EVCC. Sorry, I just want to know how this work and checking if there is something I am misunderstanding.
from iso15118.
Sure - the SECC doesn't sign the installation request coming from the EV as there is no need for the backend or Hubject to be able to verify the SECC that the request originated from. All they need to verify is the OEM - which is where - like you mentioned - signing the request with the OEM private key helps. The contract generated would be present in Hubject's contract certificate pool which could be fetched with : https://hubject.stoplight.io/docs/open-plugncharge/9fabe1661696f-get-signed-contract-data
And would have been placed in the pool beforehand by the eMobility service provider when the EV owner/manager signed up for a contract:
https://hubject.stoplight.io/docs/open-plugncharge/4349a542634c0-generate-signed-contract-data
In this repo - the env variable USE_CPO_BACKEND is used to indicate if the required backend is available to do the necessary calls to fetch the CertificateInstallationRes. If set to false - then the assumption is that everything required to build the response (MO Contract, SubCA1, SubCA2 certs) is locally available and simulates the Hubject response - which is to generate the certificateInstallationRes in base64 encoded form.
Please forgive the self promotion ;) - but I think this is an excellent diagram describing all the players involved:
https://youtu.be/ztwnmyya-nQ?t=2991
from iso15118.
The project is doing what is supposed to and I believe the explanation from Shalin was clear. If not the case, @sahabulh please reopen the issue and let us know what is not clear yet.
from iso15118.
Related Issues (20)
- The vehicle battery SOC is missing on iso15118-2 AC charging. HOT 2
- Understanding State ScheduleExchange
- When TimeoutError occurred, StreamWriter close will be hold for a long time and failed with Connection timed out finally.
- ISO15118-2 TLS fails. HOT 2
- Request for Access to EXICodec Java Source Code HOT 1
- Set ScheduleControlMode
- How to pause the charging process EVSE side? HOT 1
- EXICodec encoding time inconsistent HOT 10
- Support SSL Key Logging
- Packet Size EOF Bug / Problem HOT 3
- Unable to set ECDH-ECDSA cipher suite on client (EVCC) side HOT 3
- Request for addition of 15118-20 ACDP to Exificient jar
- SoC AC charging - ISO15118-2
- Offering Plug and Charge even when the SECC signals No_TLS security (even for ISO15118-2) HOT 2
- Is there a more detailed manual HOT 2
- evse_notification incorrectly used to detect shutdown request from EVSE in dinspec HOT 2
- EVCC keeps alive after charging session finishes HOT 5
- make install-local HOT 2
- Getting started with SECC example HOT 1
- Some EVCC errors cause program to hang forever
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iso15118.