Skip to content
StuntCharger

Relay guide connect a simulated charger to your CSMS.

The hosted relay opens the WebSocket to your CSMS on behalf of the simulator in your browser, so it can use a fixed source address, Basic Auth, TLS and client certificates.

How the connection flows

connection path
browser (simulator)  --wss-->  stuntcharger.com/proxy  --ws/wss-->  your CSMS
                                 source address 209.71.123.60
                                             or 2a09:8280:e612:1:0:231:1bf4:0

1. Allowlist the relay

If your CSMS filters by source address, allow both of these. The relay only connects outbound; nothing needs to reach us.

IPv4209.71.123.60/32
IPv62a09:8280:e612:1:0:231:1bf4:0/128

The relay can only reach public addresses. A CSMS on localhost or a private network needs a public endpoint, or run StuntCharger locally (Self-hosted plan).

2. Configure the charger

  1. 1

    Sign in

    The hosted relay needs an account, including on the free plan. Sign in or create an account.
  2. 2

    Enter the CSMS URL and charge point id

    In Charger and CSMS, set CSMS URL to your endpoint, for example wss://csms.example.com/ocpp. The Charge point id is appended as the last path segment.
  3. 3

    Choose the OCPP version

    Only the selected version is offered as the WebSocket subprotocol. Tick "Also offer other OCPP versions" to let your CSMS choose.
  4. 4

    Choose the security profile

    Pick one of 0: no authentication, 1: Basic Auth over ws, 2: TLS + Basic Auth or 3: TLS + client certificate, then fill in the fields below.
  5. 5

    Connect

    The inspector shows the negotiated subprotocol and every frame. A refused upgrade shows the HTTP status your CSMS returned.

3. Security profile settings

Profile 1: Basic Auth over ws

Enter Basic Auth user (normally the charge point id) and Password. The relay sends Authorization: Basic … on the upgrade request. Use this only on test networks: credentials travel unencrypted between the relay and your CSMS.

Profile 2: TLS + Basic Auth

Use a wss:// URL and the same user and password. If your CSMS uses a certificate from a private CA, paste that CA in CA certificate. Leave Reject untrusted server certificates on; turning it off is for debugging only.

Profile 3: TLS + client certificate

Paste the station's Client certificate and Client private key in PEM form, plus the CA certificate if needed. Check that the certificate subject matches what your CSMS expects, usually the charge point id in the CN. Available on the Team plan and above; see the Security Profile 3 guide.

Credentials are kept in your browser and sent with each connection; the relay does not store them. See Security.

Troubleshooting

  • HTTP 401 or 403 on upgrade: wrong password, missing client certificate, or the relay address is not allowlisted.
  • self-signed certificate in chain: paste your CSMS's CA certificate.
  • socket hang up over TLS: some CSMSs close the TLS connection without a readable status on authentication failure. Check the CSMS logs.
  • target not allowed: the URL resolves to a private or loopback address.