Documentation
¶
Overview ¶
Package signer keeps the CA key away from the gate (decision D3): the signer process alone reads the key and issues leaf certificates over a Unix socket to the uids it allows; the gate asks it for each host it decrypts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
Path string
// CACert is the CA certificate the leaves must chain to.
CACert *x509.Certificate
// Dial replaces the socket dial (tests).
Dial func(ctx context.Context) (net.Conn, error)
// contains filtered or unexported fields
}
Client asks a signer for leaves and caches them; it implements the gate's CertSource. It checks each leaf against the CA certificate.
func (*Client) Certificate ¶
Certificate implements gate.CertSource.
Click to show internal directories.
Click to hide internal directories.