Documentation ¶ Overview ¶ Package triple generates key-certificate pairs for the triple (CA, Server, Client). Index ¶ type KeyPair func NewCA(name string) (*KeyPair, error) func NewClientKeyPair(ca *KeyPair, commonName string) (*KeyPair, error) func NewServerKeyPair(ca *KeyPair, commonName, svcName, svcNamespace, dnsDomain string, ...) (*KeyPair, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type KeyPair ¶ type KeyPair struct { Key *rsa.PrivateKey Cert *x509.Certificate } func NewCA ¶ func NewCA(name string) (*KeyPair, error) func NewClientKeyPair ¶ func NewClientKeyPair(ca *KeyPair, commonName string) (*KeyPair, error) func NewServerKeyPair ¶ func NewServerKeyPair(ca *KeyPair, commonName, svcName, svcNamespace, dnsDomain string, ips, hostnames []string) (*KeyPair, error) Source Files ¶ View all Source files triple.go Click to show internal directories. Click to hide internal directories.