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.
Click to show internal directories.
Click to hide internal directories.