This guide provides step-by-step instructions for setting up TLS encryption between an EV Charging Station (EVCS) and a Charging Station Management System (CSMS) using self-signed certificates.
- Two separate virtual machines (VMs) for EVCS and CSMS.
- OpenSSL installed on both VMs.
- Basic knowledge of Linux command-line operations.
Run the following command inside the EVCS VM:
openssl req -x509 -newkey rsa:4096 -keyout evcs_key.pem -out evcs_cert.pem -days 365 -nodes -subj "/CN=EVCS"openssl req -x509 -newkey rsa:4096 -keyout csms_key.pem -out csms_cert.pem -days 365 -nodes -subj "/CN=CSMS"On the EVCS VM, copy evcs_cert.pem to the CSMS VM using SCP:
scp evcs_cert.pem user@csms-vm:/path/to/store/On the CSMS VM, copy csms_cert.pem to the EVCS VM using SCP:
scp csms_cert.pem user@evcs-vm:/path/to/store/Make sure that the TEVCS.py on line(25) is set up correctly in the line for server_host = "Certificate Name" Certificate Name = CSMS.