Vibe.Server.TLS (vibe v0.2.1)

Copy Markdown View Source

TLS certificate management for Erlang distribution.

Generates a self-signed CA and per-node certificates on first run. Two Vibe instances trust each other if they share the same CA — copy ~/.vibe/tls/ca.pem to establish trust between machines.

Writes an inet_tls_dist option file that configures mutual TLS for Erlang distribution with verify_peer.

Summary

Functions

ca_cert_path()

@spec ca_cert_path() :: String.t()

ca_key_path()

@spec ca_key_path() :: String.t()

dist_args()

@spec dist_args() :: [String.t()]

dist_config_path()

@spec dist_config_path() :: String.t()

ensure!()

@spec ensure!() :: :ok

node_cert_path()

@spec node_cert_path() :: String.t()

node_key_path()

@spec node_key_path() :: String.t()

tls_dir()

@spec tls_dir() :: String.t()