The ISO15118 implementation can be customized by setting environment variables. These variables allow you to control network interfaces, security enforcement, PKI paths, logging verbosity, and supported communication protocols.
Key configuration areas include:
- Networking: Specify the
NETWORK_INTERFACE (default eth0). - Security: Control TLS enforcement via
SECC_ENFORCE_TLS, enable TLS 1.3 via ENABLE_TLS_1_3, and set authentication modes via AUTH_MODES. - PKI: Define the certificate location using
PKI_PATH (defaults to <CWD>/iso15118/shared/pki/). - Logging: Adjust
LOG_LEVEL and enable message logging for EXI JSON (MESSAGE_LOG_JSON) or EXI Bytestream (MESSAGE_LOG_EXI) when the log level is set to DEBUG.
| ENV | Default Value | Description |
| ----------------- | ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| NETWORK_INTERFACE | `eth0` | HomePlug Green PHY Network Interface from which the high-level communication (HLC) will be established |
| SECC_ENFORCE_TLS | `False` | Whether or not the SECC will enforce a TLS connection |
| PKI_PATH | `<CWD>/iso15118/shared/pki/` | Path for the location of the PKI where the certificates are located. By default, the system will look for the PKI directory under the current working directory |
| LOG_LEVEL | `INFO` | Level of the Python log service |
| MESSAGE_LOG_JSON | `True` | Whether or not to log the EXI JSON messages (only works if log level is set to DEBUG) |
| MESSAGE_LOG_EXI | `False` | Whether or not to log the EXI Bytestream messages (only works if log level is set to DEBUG) |
| PROTOCOLS | `DIN_SPEC_70121,ISO_15118_2,ISO_15118_20_AC,ISO_15118_20_DC` | Enabled communication protocols on SECC. |
| AUTH_MODES | `EIM,PNC` | Selected authentication modes for SECC |
| USE_CPO_BACKEND | `False` | Indicates if backend integration is available to fetch certificates |
| ENABLE_TLS_1_3 | `False` | Enables TLS 1.3 for SECC-EVCC communication. |