tlscert

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package tlscert generates in-memory TLS certificates for omaclip peers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCA

func GenerateCA(seed []byte) (tls.Certificate, *x509.Certificate, error)

GenerateCA derives a deterministic ECDSA P-256 CA certificate from seed. All peers that share the same passphrase will derive the same CA and can therefore verify each other's leaf certificates without InsecureSkipVerify.

func GenerateLeaf

func GenerateLeaf(caCert *x509.Certificate, caKey crypto.PrivateKey) (tls.Certificate, error)

GenerateLeaf creates a random ECDSA P-256 server certificate signed by the given CA. The certificate includes SANs for all local IPs and localhost.

Types

This section is empty.

Jump to

Keyboard shortcuts

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