Skip to content

Bug: "invalid_public_key_signature" error despite documented signed chat support for 1.19+ #324

@fired

Description

@fired

Description

Despite Botcraft documentation stating "Signed chat system for 1.19+ versions" is supported, connections fail with
invalid_public_key_signature error on servers with enforce-secure-profile=true.

Bot successfully authenticates with Microsoft account and obtains player certificates, but gets immediately
disconnected when joining.

Environment

  • Botcraft version: 1.21.10 (Windows pre-compiled binary)
  • Minecraft version: 1.21.10
  • Connection mode: Online (Microsoft account - authentication successful)
  • Server setting: enforce-secure-profile=true

Steps to Reproduce

  1. Use Botcraft 1.21.10 with online mode (Microsoft account)
  2. Connect to server with enforce-secure-profile=true
  3. Authentication completes successfully, player certificates obtained
  4. Connection established but immediately disconnected

Logs

[INFO] Cached Minecraft token for Microsoft account still valid.
[INFO] Getting player certificates...
[INFO] Cached player certificates still valid!
[INFO] Player certificates obtained!
[INFO] Connection to server established.
[INFO] Behaviour tree changed to AFK Bot Behaviour
[INFO] Disconnect during playing with reason: {"content":{"translate":{"content":"multiplayer.disconnect.invalid_p
ublic_key_signature","name":"translate","type":"TagString"}},"name":"","type":"TagCompound"}

Expected Behavior

Since documentation mentions "Signed chat system for 1.19+ versions" support, the bot should successfully connect
and remain connected to servers with enforce-secure-profile=true.

Actual Behavior

Server rejects connection with invalid_public_key_signature error immediately after joining.

Questions

  1. Is there additional configuration required to enable message signing?
  2. Is this a known issue with 1.21.10 specifically?
  3. Are there any special requirements for the signing to work properly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions