Connect your own CheerLights
Have an LED strip, a Christmas tree or a little lamp on your workbench? Here's how to listen for colours from our shared PQC channel and turn them into light.
This is a separate experiment, not the worldwide CheerLights service. Existing gadgets won't automatically join: their connection software must support PQC. A device's Wi-Fi connection alone doesn't provide that support.
Quick browser test: a manual certificate exception
- Open the secure lab check in the same browser and profile as the colour page.
- If a certificate warning appears, inspect the displayed server certificate and independently confirm its SHA-256 fingerprint with the operator. If it is the expected lab certificate, you can choose the browser's manual exception for this test site. Button names vary; don't accept an unrelated or mismatched certificate.
- Return to the colour page and click Join the colour channel again.
Which server certificate should I check?
This is the lab server's certificate fingerprint, observed 4 December 2026—not the CA fingerprint further down this page:
91:E4:6A:C6:A9:0B:D5:88:6B:52:9A:1C:CD:58:FE:18:98:61:67:3E:55:4B:6D:AE:5F:50:B5:21:01:29:AF:C7
Confirm it through an independently trusted operator channel before making an exception. It changes when the certificate is renewed. If it doesn't match, stop and ask the operator—don't accept it merely because the hostname looks right.
Your browser may remember that exception and apply it to the later colour connection, as Alex reported. How long it lasts and which connections it covers vary. A successful colour message is application delivery with a manual certificate exception, not proof of normal CA-validated browser compatibility.
We don't change the PQC algorithms or automatically ignore errors. If this route doesn't work, or you want a repeatable setup, use trusted-authority installation instead. The device/terminal instructions below use explicit CA verification, not browser exceptions.
1. Check your connection software
Your MQTT client and its TLS library need to support both the new key exchange and server authentication. For a first check, use a computer with Mosquitto clients built against OpenSSL 3.5 or newer, with ML-DSA enabled. An older client is expected to fail here.
The exact security settings
TLS 1.3, X25519MLKEM768 hybrid key exchange, ML-DSA-65 server and certificate-chain authentication. Verify the hostname and the lab CA. No classical fallback, plaintext connection or certificate-warning bypass.
ESP32, ESP8266 and Zephyr builds have their own memory and TLS-library requirements. This guide doesn't claim that every board or stock MQTT library can connect. Check the board and simulator test guide before changing your firmware.
2. Get the public lab certificate
Download the public lab CA certificate. It contains no private key. The commands below use it only for that client connection; they don't add a trusted root to your whole computer.
curl --fail --show-error --output lab-ca.pem \
https://dynamicdevices.github.io/pqc-testing/cheerlights/lab-ca.pem
openssl x509 -in lab-ca.pem -noout -subject -fingerprint -sha256
Expected certificate SHA-256 fingerprint (not the PEM file's byte hash):
47:CC:03:A8:48:4C:4A:5D:0F:4A:77:26:BF:D9:A6:58:D0:0A:FC:AC:48:87:E4:78:A5:41:CB:FB:46:74:47:F6
Confirm this fingerprint with the operator over an independently trusted channel before trusting the CA. A certificate and fingerprint downloaded from one website aren't independent proof if that website is compromised. This CA is for the lab, not production use.
Alternative: install the CA as a trusted authority
- Download the public lab CA and check its fingerprint as described above.
- In your browser's settings, search for certificates. Open the certificate manager and import the lab CA as a trusted authority for websites, not as a personal/client certificate. The exact menu varies by browser and operating system.
- Restart the browser if asked, then return to the colour page and click Join the colour channel.
Use an authorised test environment. Check the manager's scope before importing: some changes affect the whole computer, not just this browser. You are trusting this specific CA—not disabling certificate checks. A browser may remember a website-warning exception and let a later colour connection work, as Alex reported. That's not the same as installing CA trust; exception scope and lifetime vary by browser.
Why not just use Certbot?
Certbot obtains certificates from an issuer; it doesn't sign them itself. Its standard documented key types are RSA and ECDSA, not the ML-DSA-65 authentication required here. Substituting a normal public-CA certificate would change the security profile, not fix full-PQC trust. Certbot's supported key types.
3. Point your implementation here
- Broker
mqtt.dynamicdevices.co.uk- Secure MQTT port
8890- Browser / WebSocket URL
wss://mqtt.dynamicdevices.co.uk:8891/mqtt, subprotocolmqtt- Username
pqc-demo- Public demo password
public-pqc-demo- Subscribe / publish topic
cheerlights— exactly this, lowercase- Message
- A lowercase colour name as UTF-8, for example
purple. Not JSON, RGB numbers or a hex string. - MQTT settings
- MQTT 3.1.1 or 5; request QoS 0; clean session; unique client ID for each device. Don't publish retained messages.
Everyone already subscribed to this topic on our broker can receive a colour change. There's no saved last colour or offline history: subscribe before someone sends one. Keep your own chosen startup colour until a valid message arrives.
4. Try a sender and two listeners
From the directory containing lab-ca.pem, run this command in two terminals. It waits up to a minute for one colour:
mosquitto_sub -h mqtt.dynamicdevices.co.uk -p 8890 \
--cafile ./lab-ca.pem --tls-version tlsv1.3 \
-u pqc-demo -P public-pqc-demo -t cheerlights -q 0 -C 1 -W 60
Then send a colour from a third terminal:
mosquitto_pub -h mqtt.dynamicdevices.co.uk -p 8890 \
--cafile ./lab-ca.pem --tls-version tlsv1.3 \
-u pqc-demo -P public-pqc-demo -t cheerlights -q 0 -m purple
Both listeners should print purple. That shows the shared message reached two clients—not that a physical LED has changed. Remove -C 1 -W 60 when you want a listener to stay connected.
These are setup examples, not a claim that every client/network has passed. Our recorded successful shared-colour checks used verified Python clients on server loopback. A separate Mosquitto CLI trial toward the public hostname did not complete before its deadline; these exact terminal examples remain to be verified end to end.
5. Turn each message into light
In your device's MQTT message callback, check the topic and recognise only these colour names. Ignore any other message and leave the lights unchanged.
red, green, blue, cyan, white, oldlace, magenta, yellow, orange, pink, purple.
# Pseudocode: adapt these calls to your MQTT and LED libraries.
connect_securely(broker, port=8890, ca="lab-ca.pem",
username="pqc-demo", password="public-pqc-demo")
subscribe("cheerlights", qos=0)
on_message(topic, payload):
if topic != "cheerlights" or length(payload) > 16:
return
colour = decode_utf8_strictly(payload)
if colour not in allowed_cheerlights_colours:
return
set_your_leds(colour)
Reject invalid UTF-8 as well. Use your CheerLights implementation's colour-to-LED mapping. Keep its MQTT network loop running so it receives messages and sends keepalives. After a disconnect, reconnect with a delay/backoff and subscribe again. Don't spin in a rapid retry loop.
The public login isn't a trustworthy identity: anyone can send junk or change the colour. Don't send secrets, execute messages, render them as HTML or connect anything safety-critical. This is a small shared test broker with limited connection capacity.
If the webpage won't connect
First open the secure lab connection check. This lets the browser show its own error, instead of the webpage's generic WebSocket failure.
ERR_CERT_AUTHORITY_INVALID means the browser doesn't trust the lab CA. Choose the manual-exception quick test after confirming the exact lab certificate, or install the verified CA for repeatable normal validation. CA installation needs an authorised test environment and may affect the whole OS, not just one profile. Never disable certificate checks globally.
Trusting the CA doesn't add missing PQC algorithms. No browser/version is verified yet for the complete profile. If the check opens but the colour channel still fails, record the browser version and console/network error; credentials, capacity and network problems are other possibilities. Detailed browser guidance.
Seeing the HTTPS lab page doesn't necessarily settle the WebSocket trust question. A remembered exception may work, as Alex found, but may not cover every connection. In our separate test browser, the WebSocket itself reported ERR_CERT_AUTHORITY_INVALID. If your exception doesn't work, try verified CA setup; record any remaining browser error.
A successful strict HTTPS check is not by itself proof that WSS/MQTT delivery works. The webpage's JavaScript cannot independently report all negotiated crypto settings, and GitHub Pages' own hosting connection is separate.