Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertGenerator ¶
type CertGenerator struct { CAKey []byte CACert []byte DNSNameToCertArtifacts map[string]*generator.Artifacts }
CertGenerator is a certGenerator for testing.
func (*CertGenerator) Generate ¶
func (cp *CertGenerator) Generate(commonName string) (*generator.Artifacts, error)
Generate generates certificates by matching a common name.
func (*CertGenerator) SetCA ¶
func (cp *CertGenerator) SetCA(CAKey, CACert []byte)
SetCA sets the PEM-encoded CA private key and CA cert for signing the generated serving cert.
Click to show internal directories.
Click to hide internal directories.