Connecting a charger · Video 15 of 19

OCPP TLS and root certificates: charger connects on ws but not wss

Find out why an EV charger stays silent on wss and get it connected by installing the right root certificates, not the server's own one.

Length: 4:04Read the guide

In this video

The order to try (wss with profile 0, then the network, then ws), how to export the root in Chrome, and why to install both ISRG Root X1 and X2.

Chapters

Transcript

TLS and root certificates. On the bench, your charger connected fine over unsecured ws. You switch it to the secure wss address, and it disappears. No error in Powerfill, no unknown charger, nothing. That silence points at TLS. With wss, the charger checks the server before it sends a single OCPP message. It checks the server's certificate against root certificates it already holds. If the right roots are missing, it hangs up. Nothing reaches Powerfill.

Compare two failures. A wrong charger ID still reaches Powerfill. It shows up under Add Charger as Connecting now. If the charger does not trust Powerfill's certificate, it hangs up by itself. No OCPP connection starts, so nothing appears. One more cause looks just the same: the charger's clock. If it is far behind, a valid certificate looks not yet valid. So let the charger take its time from the network.

Try the connection in this order. Start with wss and security profile 0, on the charger and in Powerfill. If the charger appears, the address and the certificates are fine. Move to profile 2. If nothing appears, check the network: the charger needs its own internet access, over Wi-Fi, a SIM or a cable. If the network is fine, try unsecured ws, still with profile 0. It is for debugging only.

If ws connects and wss does not, the charger is missing the root certificates. In Powerfill, find the charger in All Chargers.

Open it.

Go to Settings. The current profile is marked Current. Profile 0 - No Authentication is where you start. Profile 2 is the one for everyday use: TLS plus a password. If you change the profile here, change the charger to match. Otherwise it cannot reconnect. To get the root certificates, open your account's own address in Chrome. A good page is the account's API description, at the address shown here.

Check that the address bar still shows your account's address. The certificate must come from there. Click the icon at the start of the address bar, and open the certificate. On the Details tab, the hierarchy shows the chain. Click its top line: that is a root. Click Export, and save the file. Take the top line, never the bottom one. That is the server's own certificate, replaced every few months.

Chrome shows only the root the chain ends in. Install both: ISRG Root X1 and ISRG Root X2. The root a chain ends in can change at a renewal. The guide for this lesson links both files. Chargers take them as PEM text or as a binary DER file. The manual says which. To install them, connect the charger over unsecured ws, so it is online. The usual way is the charger's own admin page: find its security or certificate settings.

Upload both roots, save, and restart the charger or its OCPP connection. Chargers with OCPP security support can also take them by the Install Certificate command, through the Powerfill API. Switch the charger to wss and profile 2, and set profile 2 in Powerfill with the same password. Do not leave a charger on unsecured ws. You can now find out why a charger stays silent on wss, and get it connected with both roots.