Versions in this module Expand all Collapse all v0 v0.16.2 Sep 2, 2019 Changes in this version + func BootstrapCertificates(authOptions *auth.Options) error + func CheckCertificateDate(certPath string) (bool, error) + func GenerateCACertificate(certFile, keyFile, org string, bits int) error + func GenerateCert(opts *Options) 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 interface + GenerateCACertificate func(certFile, keyFile, org string, bits int) error + GenerateCert func(opts *Options) error + ReadTLSConfig func(addr string, authOptions *auth.Options) (*tls.Config, error) + ValidateCertificate func(addr string, authOptions *auth.Options) (bool, error) + func NewX509CertGenerator() Generator + type Options struct + Bits int + CAFile string + CAKeyFile string + CertFile string + Hosts []string + KeyFile string + Org string + SwarmMaster bool + type X509CertGenerator struct + func (xcg *X509CertGenerator) GenerateCACertificate(certFile, keyFile, org string, bits int) error + func (xcg *X509CertGenerator) GenerateCert(opts *Options) error + func (xcg *X509CertGenerator) ReadTLSConfig(addr string, authOptions *auth.Options) (*tls.Config, error) + func (xcg *X509CertGenerator) ValidateCertificate(addr string, authOptions *auth.Options) (bool, error)