Documentation
¶
Overview ¶
Package ca is lockhttp's local certificate authority: one per installation (P-256, pathlen 0, 90 days), trusted only inside lea's containers, and the 24-hour leaf certificates the signer issues for the gate's MITM.
Index ¶
Constants ¶
View Source
const ( CAValidity = 90 * 24 * time.Hour LeafValidity = 24 * time.Hour )
Lifetimes.
View Source
const ( CertFile = "ca.pem" KeyFile = "ca-key.pem" )
File names in a CA directory.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CA ¶
type CA struct {
Cert *x509.Certificate
Key *ecdsa.PrivateKey
// PEM is the certificate in PEM form.
PEM []byte
// contains filtered or unexported fields
}
CA is a loaded authority.
Click to show internal directories.
Click to hide internal directories.