Versions in this module Expand all Collapse all v0 v0.5.1 Nov 16, 2015 Changes in this version + 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 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(hosts []string, certFile, keyFile, caFile, caKeyFile, org string, bits int) error + ValidateCertificate func(addr string, authOptions *auth.Options) (bool, error) + func NewX509CertGenerator() Generator + type PathInfo struct + CaCertPath string + CaPrivateKeyPath string + ClientCertPath string + ClientKeyPath string + ServerCertPath string + ServerKeyPath string + type X509CertGenerator struct + 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) ValidateCertificate(addr string, authOptions *auth.Options) (bool, error)