Skip to content

Camera live view does not require a short token.r: the mangled createca hostname is a post-handshake SAN check #229

Closed

Description

@mark-schultz-wu

The finding

The camera threads converged on keeping token.r within the
firmware's 15-character window (#18, #173, #185). That's not
required: the mangled hostname is just a SAN problem.

On the a184 (China P20, factory 02.22.56), preview start fetches TURN
credentials from:

https://<first 15 chars of token.r>iot.roborock.com/fwapi/createca

With token.r = "r.schultzwu.com/" the robot dials
r.schultzwu.comiot.roborock.com. Packet capture with an ordinary
*.yourdomain leaf on :443:

  • the TLS 1.3 handshake completes (ServerHello, Certificate,
    Finished),
  • then the robot sends an encrypted alert + FIN/RST. No HTTP request
    is ever sent.

A post-handshake hostname validation — same as its
api-cn.roborock.com startup call — not chain validation: the same
robot accepts our ZeroSSL chain for its token host.

What that buys you

  • Any hostname the firmware can be made to dial, the local network
    can answer — the name just has to be coverable by a certificate the
    robot's frozen trust store accepts (no revocation, no CT, no
    blocklists; it never fetches any).
  • We cover the mangled name with a SAN and forward the POST to the
    existing fw_createca route. The robot retries createca per
    attempt (no re-pairing needed), and live view works end to end
    through the stack's TURN relay. Our SAN lives on a certificate
    minted from the compromised eMudhra intermediate keys — China firmware renews rrcheck via POST /f/c to hardcoded api-cn.roborock.com (not just /devices/{did}/sh) — capture + body format #228 has
    that part.

Still required either way: the viewer-side WebRTC offer (audio-first
sendrecv opus, video recvonly H.264; go2rtc ≥ 1.9.14 gets it right).
This is factory CN firmware — an updated robot may behave differently.

Capture of the createca request body (did/pid/uid + RSA signature)
available on request.

Activity

  1. changed the title [-]Camera live view does not require a short token.r: the mangled createca hostname is a post-handshake SAN check (capture + working local setup)[/-] [+]Camera live view does not require a short token.r: the mangled createca hostname is a post-handshake SAN check[/+] on Nov 3, 2026
  2. added
    area: camera
    compatibility report
    documentation
    needs verification
    on Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: cameracompatibility reportdocumentationneeds verification

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions