certificates

package
v0.0.0-...-8d921ee Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2015 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertWithKey

type CertWithKey struct {
	Name          string
	Thumbprint    string
	ShouldRenewAt time.Time
	PrivateKey    *rsa.PrivateKey
	Certificate   *x509.Certificate
}

func NewCertWithKey

func NewCertWithKey(name string, minTTL, maxTTL time.Duration) (*CertWithKey, error)

type CertificateManager

type CertificateManager struct {
	*CertificateValidator
	// contains filtered or unexported fields
}

func NewCertificateManager

func NewCertificateManager(serverStore store.ServerStore, config *config.StoreConfig, parent logging.Logger) *CertificateManager

func (*CertificateManager) Close

func (s *CertificateManager) Close() error

func (*CertificateManager) GetSelfCertificate

func (s *CertificateManager) GetSelfCertificate() (*CertWithKey, error)

type CertificateVO

type CertificateVO struct {
	X5t         string `json:"x5t"`
	ExpiresAt   int64  `json:"expires_at"`
	Certificate string `json:"certificate"`
	PublicKey   string `json:"public_key"`
}

func NewCertificateVO

func NewCertificateVO(certificate *x509.Certificate) *CertificateVO

type CertificateValidator

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

func NewCertificateValidator

func NewCertificateValidator(agentStore store.AgentStore, config *config.StoreConfig, parent logging.Logger) *CertificateValidator

func (*CertificateValidator) FindCertificate

func (s *CertificateValidator) FindCertificate(thumbprint string) (*x509.Certificate, error)

func (*CertificateValidator) ListAllCertificates

func (s *CertificateValidator) ListAllCertificates() ([]*x509.Certificate, error)

Jump to

Keyboard shortcuts

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