Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificateAuthority ¶
type CertificateAuthority struct {
CACert *x509.Certificate
CAKey *rsa.PrivateKey
CACertPEM []byte
CAKeyPEM []byte
}
CertificateAuthority manages the internal PKI for FallBCK server and agent mTLS
func LoadOrCreateCA ¶
func LoadOrCreateCA(certPath, keyPath string) (*CertificateAuthority, error)
LoadOrCreateCA loads a CA from disk or generates a new self-signed root CA
func (*CertificateAuthority) IssueClientCert ¶
func (ca *CertificateAuthority) IssueClientCert(commonName string, validityDays int) (*KeyPair, error)
IssueClientCert generates a client mTLS keypair signed by this CA for an agent or server
Click to show internal directories.
Click to hide internal directories.