Documentation ¶
Index ¶
- func BootstrapCertificates(authOptions *auth.AuthOptions) error
- func GenerateCACertificate(certFile, keyFile, org string, bits int) error
- func GenerateCert(hosts []string, certFile, keyFile, caFile, caKeyFile, org string, bits int) error
- func ValidateCertificate(addr, caCertPath, serverCertPath, serverKeyPath string) (bool, error)
- type CertPathInfo
- type ErrValidatingCert
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BootstrapCertificates ¶
func BootstrapCertificates(authOptions *auth.AuthOptions) error
func GenerateCACertificate ¶
GenerateCACertificate generates a new certificate authority from the specified org and bit size and stores the resulting certificate and key file in the arguments.
func GenerateCert ¶
GenerateCert generates a new certificate signed using the provided certificate authority files and stores the result in the certificate file and key provided. The provided host names are set to the appropriate certificate fields.
func ValidateCertificate ¶
Types ¶
type CertPathInfo ¶
type ErrValidatingCert ¶
type ErrValidatingCert struct {
// contains filtered or unexported fields
}
func (ErrValidatingCert) Error ¶
func (e ErrValidatingCert) Error() string
Click to show internal directories.
Click to hide internal directories.