sslcert

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2015 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitCertChain

func SplitCertChain(chain string) (string, string)

SplitCertChain takes a complete certificate chain (including the primary cert) and returns two strings: the primary cert and the rest of the certificate chain, if any.

Types

type FakeManager

type FakeManager struct{}

func NewFakeManager

func NewFakeManager() *FakeManager

func (*FakeManager) Add

func (m *FakeManager) Add(name string, crt string, key string) (string, error)

func (*FakeManager) MetaData

func (m *FakeManager) MetaData(id string) (map[string]string, error)

func (*FakeManager) Remove

func (m *FakeManager) Remove(id string) error

type IAMManager

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

func NewIAMManager

func NewIAMManager(config *aws.Config, path string) *IAMManager

func (*IAMManager) Add

func (m *IAMManager) Add(name string, cert string, key string) (string, error)

func (*IAMManager) MetaData

func (m *IAMManager) MetaData(name string) (map[string]string, error)

func (*IAMManager) Remove

func (m *IAMManager) Remove(name string) error

type Manager

type Manager interface {
	// Add adds a new certificate and returns a unique id for the added certificate.
	Add(name string, crt string, key string) (id string, err error)

	// Metadata returns any metadata about the certificate for the given id.
	MetaData(id string) (data map[string]string, err error)

	// Remove removes the certificate for the given id.
	Remove(id string) (err error)
}

Jump to

Keyboard shortcuts

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