certstore

package
v0.0.0-...-ceda1b8 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertStore

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

func NewCertStore

func NewCertStore(fs afero.Fs, dir string, organization ...string) (*CertStore, error)

func (*CertStore) CACert

func (s *CertStore) CACert() *x509.Certificate

func (*CertStore) CACertBytes

func (s *CertStore) CACertBytes() []byte

func (*CertStore) CAKey

func (s *CertStore) CAKey() *rsa.PrivateKey

func (*CertStore) CAKeyBytes

func (s *CertStore) CAKeyBytes() []byte

func (*CertStore) CAName

func (s *CertStore) CAName() string

func (*CertStore) CertFile

func (s *CertStore) CertFile(name string) string

func (*CertStore) InitCA

func (s *CertStore) InitCA(prefix ...string) error

func (*CertStore) IsExists

func (s *CertStore) IsExists(name string, prefix ...string) bool

func (*CertStore) KeyFile

func (s *CertStore) KeyFile(name string) string

func (*CertStore) LoadCA

func (s *CertStore) LoadCA(prefix ...string) error

func (*CertStore) Location

func (s *CertStore) Location() string

func (*CertStore) NewCA

func (s *CertStore) NewCA(prefix ...string) error

func (*CertStore) NewClientCertPair

func (s *CertStore) NewClientCertPair(sans cert.AltNames, organization ...string) (*x509.Certificate, *rsa.PrivateKey, error)

func (*CertStore) NewServerCertPair

func (s *CertStore) NewServerCertPair(sans cert.AltNames) (*x509.Certificate, *rsa.PrivateKey, error)

func (*CertStore) PairExists

func (s *CertStore) PairExists(name string, prefix ...string) bool

func (*CertStore) Read

func (s *CertStore) Read(name string) (*x509.Certificate, *rsa.PrivateKey, error)

func (*CertStore) SetCA

func (s *CertStore) SetCA(crtBytes, keyBytes []byte) error

func (*CertStore) Write

func (s *CertStore) Write(name string, crt *x509.Certificate, key *rsa.PrivateKey) error

Jump to

Keyboard shortcuts

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