BibaVPN server provisioning (control plane → VPS)
The control plane provisions each user instance with file-based self-signed TLS, certificate pinning in the invite, and hardened bibavpn-server flags. This matches the secure deployment model documented for manual VPS setup.
What the provisioner does
On each provision (SSH to the Docker host):
- Creates a persistent cert directory on the host:
{CONTROL_PLANE_BIBA_CERT_BASE_DIR}/{container_name}/ - Generates a 4096-bit RSA self-signed cert once (reused on container restart if the directory remains).
- Runs
bibavpn-serverin Docker with: ---cert/--key(not--self-signed-san) ---read-only+ tmpfs for/tmp- v3 defaults:--proto-domain default,--pad-mode adaptive- auth rate limits, session caps, handshake/mux timeouts ---print-invite-uri(embedspin_cert_pem— clients do not need--insecure) - Waits for
biba://…in container logs and stores it on the instance.
Environment variables
| Variable | Default | Meaning |
|---|---|---|
CONTROL_PLANE_BIBA_IMAGE |
bibavpn-server:local |
Docker image for new instances |
CONTROL_PLANE_BIBA_CERT_BASE_DIR |
/var/lib/bibavpn/certs |
Host path for per-instance TLS material |
CONTROL_PLANE_BIBA_CERT_VALIDITY_DAYS |
825 |
Self-signed cert lifetime |
CONTROL_PLANE_DEFAULT_CONTAINER_PORT |
8443 |
Internal container listen port |
CONTROL_PLANE_DEFAULT_WS_PATH |
/ws |
WebSocket path |
CONTROL_PLANE_DEFAULT_MAX_WS_BINARY |
262144 |
Max WS binary frame size |
VPS requirements
In addition to Docker and tc shaping:
opensslon the host (cert generation)- Writable
CONTROL_PLANE_BIBA_CERT_BASE_DIR(typically/var/lib/bibavpn/certs) public_hoston the server record must match what clients use for SNI (IP or DNS name)
Client connection
Users receive:
invite_uri(biba://…) — may be shared over an ordinary channelinvite_passphrase— share separately (portal shows both)
Clients should use --from-invite; pin is inside the invite. Do not use --insecure for control-plane instances.
Manual reference
See also server-setup.md for the same TLS/pin model when deploying without the control plane.