cert: gomodules.xyz/cert/certstore Index | Files

package certstore

import "gomodules.xyz/cert/certstore"

Index

Package Files

lib.go

func SANsForIPs Uses

func SANsForIPs(s string, ips ...string) cert.AltNames

func SANsForNames Uses

func SANsForNames(s string, names ...string) cert.AltNames

type CertStore Uses

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

func NewCertStore Uses

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

func (*CertStore) CACert Uses

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

func (*CertStore) CACertBytes Uses

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

func (*CertStore) CAKey Uses

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

func (*CertStore) CAKeyBytes Uses

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

func (*CertStore) CAName Uses

func (s *CertStore) CAName() string

func (*CertStore) CertFile Uses

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

func (*CertStore) InitCA Uses

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

func (*CertStore) IsExists Uses

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

func (*CertStore) KeyFile Uses

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

func (*CertStore) LoadCA Uses

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

func (*CertStore) Location Uses

func (s *CertStore) Location() string

func (*CertStore) NewCA Uses

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

func (*CertStore) NewClientCertPair Uses

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

func (*CertStore) NewClientCertPairBytes Uses

func (s *CertStore) NewClientCertPairBytes(sans cert.AltNames, organization ...string) ([]byte, []byte, error)

func (*CertStore) NewHostCertPair Uses

func (s *CertStore) NewHostCertPair() (*x509.Certificate, *rsa.PrivateKey, error)

func (*CertStore) NewHostCertPairBytes Uses

func (s *CertStore) NewHostCertPairBytes() ([]byte, []byte, error)

func (*CertStore) NewPeerCertPair Uses

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

NewPeerCertPair is used to create cert pair that can serve as both server and client. This is used to issue peer certificates for etcd.

func (*CertStore) NewPeerCertPairBytes Uses

func (s *CertStore) NewPeerCertPairBytes(sans cert.AltNames) ([]byte, []byte, error)

func (*CertStore) NewServerCertPair Uses

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

func (*CertStore) NewServerCertPairBytes Uses

func (s *CertStore) NewServerCertPairBytes(sans cert.AltNames) ([]byte, []byte, error)

func (*CertStore) PairExists Uses

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

func (*CertStore) Read Uses

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

func (*CertStore) ReadBytes Uses

func (s *CertStore) ReadBytes(name string) ([]byte, []byte, error)

func (*CertStore) SetCA Uses

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

func (*CertStore) Write Uses

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

func (*CertStore) WriteBytes Uses

func (s *CertStore) WriteBytes(name string, crt, key []byte) error

Package certstore imports 11 packages (graph) and is imported by 20 packages. Updated 2019-05-27. Refresh now. Tools for package owners.