Documentation
¶
Index ¶
- func BootstrapCertificates(authOptions *auth.Options) error
- func GenerateCACertificate(certFile, keyFile, org string, bits int) error
- func GenerateCert(hosts []string, certFile, keyFile, caFile, caKeyFile, org string, bits int) error
- func ReadTLSConfig(addr string, authOptions *auth.Options) (*tls.Config, error)
- func SetCertGenerator(cg Generator)
- func ValidateCertificate(addr string, authOptions *auth.Options) (bool, error)
- type Generator
- type PathInfo
- type X509CertGenerator
- func (xcg *X509CertGenerator) GenerateCACertificate(certFile, keyFile, org string, bits int) error
- func (xcg *X509CertGenerator) GenerateCert(hosts []string, certFile, keyFile, caFile, caKeyFile, org string, bits int) error
- func (xcg *X509CertGenerator) ReadTLSConfig(addr string, authOptions *auth.Options) (*tls.Config, error)
- func (xcg *X509CertGenerator) ValidateCertificate(addr string, authOptions *auth.Options) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BootstrapCertificates ¶
func GenerateCACertificate ¶
func GenerateCert ¶
func ReadTLSConfig ¶ added in v0.5.3
func SetCertGenerator ¶
func SetCertGenerator(cg Generator)
Types ¶
type Generator ¶ added in v0.5.1
type Generator interface {
GenerateCACertificate(certFile, keyFile, org string, bits int) error
GenerateCert(hosts []string, certFile, keyFile, caFile, caKeyFile, org string, bits int) error
ReadTLSConfig(addr string, authOptions *auth.Options) (*tls.Config, error)
ValidateCertificate(addr string, authOptions *auth.Options) (bool, error)
}
func NewX509CertGenerator ¶
func NewX509CertGenerator() Generator
type X509CertGenerator ¶
type X509CertGenerator struct{}
func (*X509CertGenerator) GenerateCACertificate ¶
func (xcg *X509CertGenerator) GenerateCACertificate(certFile, keyFile, org