ssl

package
v0.0.0-...-9b90ccc Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAdminCertificate

func CreateAdminCertificate(rootCerts RootCerts) ([]byte, []byte, []byte, error)

func CreateNodeCertificate

func CreateNodeCertificate(rootCerts RootCerts, fqdn string, ip string) ([]byte, []byte, []byte, error)

func CreateRootCertificate

func CreateRootCertificate(etcd etcd.EtcdClient, token string, key openssl.PrivateKey) *openssl.Certificate

func CreateRootKeys

func CreateRootKeys(etcd etcd.EtcdClient, token string) openssl.PrivateKey

func CreateServerCertificate

func CreateServerCertificate(etcd etcd.EtcdClient, token string, rootCerts RootCerts) ([]byte, []byte, []byte)

func GenerateKeypairs

func GenerateKeypairs(bytes int) (openssl.PrivateKey, []byte, []byte)

func LoadCerts

func LoadCerts(etcd etcd.EtcdClient, token string) (RootCerts, ServerCerts)

Types

type RootCerts

type RootCerts struct {
	Certificate *openssl.Certificate

	Token string
	// contains filtered or unexported fields
}

type ServerCerts

type ServerCerts struct {
	Certificate []byte
	PrivateKey  []byte
	PublicKey   []byte
}

Jump to

Keyboard shortcuts

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