server

command
v0.28.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2026 License: MIT Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command server is a holt hub whose OUTER WebSocket hop is plaintext, but which runs MUTUAL TLS INSIDE each tunnel. After the plaintext holt handshake it becomes the inner TLS client: it presents the "hub" certificate and verifies the peer's inner server certificate against a shared CA. The peer, in turn, requires the hub's client certificate — so both processes authenticate each other and the payload is encrypted end-to-end, even though the transport is plaintext (as it would be past a TLS-terminating proxy).

On the first run it generates a demo CA + certs into a shared temp dir; start it before the client.

go run ./examples/encrypted/server
go run ./examples/encrypted/client   # in another terminal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL