barrel_p2p_quic_cert (barrel_p2p v0.1.0)
View SourceSummary
Functions
Ensure QUIC certificates exist, generating them if needed. Uses default directory from application config.
Ensure QUIC certificates exist in the specified directory.
Generate a new self-signed certificate and key.
Get the paths to the certificate and key files.
Functions
-spec ensure_cert() -> ok | {error, term()}.
Ensure QUIC certificates exist, generating them if needed. Uses default directory from application config.
-spec ensure_cert(file:filename()) -> ok | {error, term()}.
Ensure QUIC certificates exist in the specified directory.
-spec generate_cert(file:filename()) -> ok | {error, term()}.
Generate a new self-signed certificate and key.
-spec get_cert_paths() -> {CertFile :: file:filename(), KeyFile :: file:filename()}.
Get the paths to the certificate and key files.