Skip to main content

Module cert

Module cert 

Source
Expand description

TLS certificate generation for pwr-server.

Generates self-signed ECDSA P-256 certificates for TLS 1.3. The certificate fingerprint is printed so the user can pin it in the client config for MITM protection.

Functionsยง

generate_certificate
Generate a self-signed TLS certificate and private key.
init_server
Generate a fresh server configuration with TLS certificates and PSK.
save_certificate
Write certificate and key to files with appropriate permissions.