Documentation
¶
Overview ¶
Package tlsca manages a local certificate authority for TLS interception: it loads or generates a CA, then mints and caches short-lived per-host leaf certificates signed by that CA so the proxy can terminate client TLS.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CA ¶
type CA struct {
// contains filtered or unexported fields
}
CA is a local certificate authority plus a cache of minted leaf certs.
func LoadOrCreate ¶
LoadOrCreate loads the CA from dir if present, otherwise generates a new one and persists ca.crt + ca.key under dir.
func (*CA) LeafForHost ¶
func (c *CA) LeafForHost(host string) (*tls.Certificate, error)
LeafForHost mints (or returns a cached) leaf certificate for host, signed by the CA. host may be a DNS name or an IP literal.
Click to show internal directories.
Click to hide internal directories.