OCPP Security Profiles and TLS: What Profile 1, 2 and 3 Actually Require

What each OCPP security profile demands operationally: certificates, rotation, monitoring, TLS failures that keep chargers offline, and a hardening checklist.

Also available in 简体中文

Almost every tender document says “the platform must support TLS”. Almost none say which security profile, which certificate lifecycle, or who is responsible when a certificate expires at 2 a.m. on a Saturday.

This article is the operational view: what each profile actually requires of you, and how the failures present.

The four profiles

Profile Transport Authentication Where you see it
0 ws:// plain, or wss:// with basic auth HTTP Basic, clear text over ws Lab, legacy firmware, cheap hardware
1 wss:// TLS HTTP Basic over TLS The default for most 1.6J deployments
2 wss:// mutual TLS Client certificate per station Serious fleets, utilities
3 wss:// mTLS + security extension Client cert + signed messages, signed firmware 2.0.1 only, regulated markets

Terminology note: the security extension (signed SecurityEventNotification, signed firmware, certificate management) is often described as part of Profile 3. Implementations vary in how strictly they enforce it — always test rather than assume.

Profile 0 — do not ship it

Credentials in clear text, no integrity. On a public network anyone on the path can read the charge point identity and password, then connect as that charger and inject transactions.

It exists for bench testing. If a supplier ships Profile 0 as the default and calls the TLS setting “optional”, that tells you something about their security roadmap.

Profile 1 — TLS with basic auth

The pragmatic baseline, and what most of the installed base runs:

wss://csms.example.com/ocpp/CP-0001
Authorization: Basic base64("CP-0001:SomePassword")
Sec-WebSocket-Protocol: ocpp1.6

What it buys you: confidentiality and integrity on the wire. What it does not buy you: proof that the client is a charger rather than anyone who learned the password. Passwords are typically shared across a vendor’s fleet or generated per station — either way, they leak through config exports, screenshots and support tickets.

Minimum operational requirements for Profile 1:

  • TLS 1.2 floor, 1.3 preferred; disable CBC-only suites and anything with SHA-1.
  • One unique password per station, stored hashed, rotatable without a site visit.
  • HSTS on the hostname, and no plaintext ws:// listener at all.
  • Rate limiting on failed upgrades, otherwise credential stuffing is free.

Profile 2 — mutual TLS

Add a client certificate to each station. Now the backend can refuse a connection that merely knows the password, and the charger identity can be bound to the certificate subject.

What changes operationally — this is the part that gets underestimated:

  • You need a PKI. Even a small one: a private CA, a per-station certificate, a documented issuance process, and somewhere to store the private keys.
  • Provisioning becomes a step. Certificates must be installed on the charger, usually from a USB stick or a factory tool on 1.6J hardware.
  • Expiry becomes an outage. A client certificate that expires takes the station offline with no OCPP-level error — just a TLS alert in your access log.
  • Revocation is weak. CRL/OCSP checking on embedded stacks is inconsistent; in practice you rotate the CA when you need to mass-revoke.

Profile 3 — certificate management and signed operations

Only meaningful on OCPP 2.0.1, because 2.0.1 defines the messages that make it manageable:

InstallCertificate        — backend pushes a CA or client cert to the station
CertificateSigned         — backend signs a CSR generated by the station
GetInstalledCertificateIds— inventory what is on the device
DeleteCertificate         — remove by hash
SecurityEventNotification — station reports security-relevant events
SignCertificate           — station requests a certificate for Plug & Charge

This is what makes a real fleet possible: certificates become data you manage from the backend instead of objects you drive to.

It is also the foundation of Plug & Charge. Without a managed certificate lifecycle there is no PnC, because the contract certificate has to be installed, validated and rotated.

Why TLS fails in the field

From support logs, in order of frequency. None of these are cryptographic attacks; they are operational drift.

1. Expired intermediate. The leaf is valid, the chain is not. Chargers often only validate part of the chain, or cache the intermediate from firmware build time.

echo | openssl s_client -connect csms.example.com:443 \
  -servername csms.example.com -showcerts 2>/dev/null | \
  openssl crl2pkcs7 -nocrl -certfile /dev/stdin | \
  openssl pkcs7 -print_certs -noout

2. CN / SAN mismatch. The charger connects to csms.example.com but the certificate is issued for *.example.com in a way the device’s matcher rejects, or the device has no SNI support and the server returns the wrong certificate. Test without SNI explicitly if the firmware is old.

3. Clock skew. A certificate valid from now is not yet valid on a charger whose clock is in 2019. Symptom: TLS handshake failure immediately after provisioning, then it “fixes itself” days later. Always set the clock before installing certificates.

4. Trust store too old. Hardware built before Let’s Encrypt’s ISRG Root X1 cross-sign expiry frequently rejects otherwise-valid chains. Fix by installing the root on the device or issuing from an older-trusted CA — not by turning verification off.

5. Certificate installed but key not matching. Silent on many chargers: they present nothing, and mTLS rejects the handshake. Log the client certificate subject on the backend so you can tell “no certificate” from “wrong certificate”.

6. Cipher suite mismatch after a server hardening change. You disable TLS 1.0/1.1 on the server; two hundred stations running an old stack go offline at once. Check the oldest firmware in your fleet before tightening.

A rotation policy that survives contact with reality

The pattern that works for fleets we operate:

  1. Leaf certificates: 12 months, auto-renewed at 60 days remaining. Shorter is better in theory, and a nightmare on 1.6J hardware where rotation needs a technician.
  2. Two active CAs at all times — current and next. Stations trust both, so a CA change is a rollout, not a flag day.
  3. Inventory first. You cannot rotate what you cannot list. GetInstalledCertificateIds on 2.0.1; a spreadsheet plus an audit script on 1.6J.
  4. Monitor expiry as an alert, not a dashboard. 30 days out, it should page someone.
  5. Test the rotation path on one station per firmware version before scheduling the fleet.

On 1.6J, be honest about the cost: if you cannot install certificates remotely, every rotation cycle is a truck roll. That single fact is often the real argument for 2.0.1 hardware.

Hardening checklist

For the backend:

  • Only 443 exposed; no ws:// listener, no plaintext fallback port.
  • TLS 1.2+, modern suites, HSTS with includeSubDomains once you are sure of your subdomains.
  • Client certificate verification optional for Profile 1, required for Profile 2, with the subject mapped to a charge point identity.
  • Per-identity rate limits on connections and failed upgrades.
  • Log the TLS version, cipher and client certificate subject on every upgrade — you will need it during the first incident.
  • Reject duplicate concurrent connections for the same identity, or at least log them loudly (it usually means a cloned config).

For the station side:

  • Unique credentials per unit, no factory default passwords.
  • NTP configured; a station that cannot reach NTP is a future incident.
  • Firmware signed and version-pinned; refuse unsigned updates where the hardware allows it.
  • Local authorisation list as a fallback — but understand that offline fallback is also an attack surface if the list is writable over the network.

What to ask a supplier

  1. Which security profiles are implemented, and which is the default out of the box?
  2. Does the firmware support TLS 1.2 and 1.3, and can the cipher list be configured?
  3. Can the client certificate be installed remotely (2.0.1 InstallCertificate) or does it need physical access?
  4. Where are the credentials stored, and can they be rotated from the backend?
  5. Are firmware images signed, and does the bootloader verify them?
  6. Is there a SecurityEventNotification stream, and what triggers it?

A supplier that answers all six is a supplier you can put in front of a utility procurement team. One that answers two is a supplier you keep on the low-voltage side of the network.

If you want to check whether a specific charger really negotiates TLS and the right subprotocol — rather than trusting the datasheet — the online OCPP simulator shows the handshake and the raw messages, and our security-relevant FAQ entries cover the failure modes we see most often.

  • Security Profile
  • TLS
  • mTLS
  • Certificates
  • OCPP 2.0.1

Where next

← All articles