Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertClient ¶
type CertClient interface { InitCa() error GenerateKeyAndCertSet(hosts []string, validityInDays int) ([]byte, []byte, error) PemEncodedCa() []byte }
func NewCertGeneratorClient ¶
func NewCertGeneratorClient(organizations []string, caValidity int) (CertClient, error)
type CertificateGenerator ¶
type CertificateGenerator struct { CaValidity int Ca *x509.Certificate CaPrivateKey *rsa.PrivateKey CaPem []byte CaPrivKeyPem []byte Organizations []string }
func (*CertificateGenerator) GenerateKeyAndCertSet ¶
func (*CertificateGenerator) InitCa ¶
func (c *CertificateGenerator) InitCa() error
func (*CertificateGenerator) PemEncodedCa ¶
func (c *CertificateGenerator) PemEncodedCa() []byte
Click to show internal directories.
Click to hide internal directories.