cert

package
v0.5.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2015 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BootstrapCertificates

func BootstrapCertificates(authOptions *auth.AuthOptions) error

func GenerateCACertificate

func GenerateCACertificate(certFile, keyFile, org string, bits int) error

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

func GenerateCert(hosts []string, certFile, keyFile, caFile, caKeyFile, org string, bits int) error

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

func ValidateCertificate(addr, caCertPath, serverCertPath, serverKeyPath string) (bool, error)

Types

type CertPathInfo

type CertPathInfo struct {
	CaCertPath       string
	CaPrivateKeyPath string
	ClientCertPath   string
	ClientKeyPath    string
	ServerCertPath   string
	ServerKeyPath    string
}

type ErrValidatingCert

type ErrValidatingCert struct {
	// contains filtered or unexported fields
}

func (ErrValidatingCert) Error

func (e ErrValidatingCert) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL