Versions in this module Expand all Collapse all v0 v0.2.1 Jul 1, 2023 v0.2.0 Jun 17, 2023 Changes in this version + func NewCATemplate() *x509.Certificate + func NewClientTemplate(cn string, org string) *x509.Certificate + func NewServerTemplate(names []string, ips []net.IP) *x509.Certificate + type CSR struct + func (c *CSR) MarshalJSON() ([]byte, error) + func (c *CSR) UnmarshalJSON(data []byte) error + type Cert struct + func (c *Cert) MarshalJSON() ([]byte, error) + func (c *Cert) UnmarshalJSON(data []byte) error + type CertIO interface + CSRPath func() string + CertPath func() string + KeyPath func() string + LoadCSR func() ([]byte, error) + LoadCert func() ([]byte, error) + LoadKey func() ([]byte, error) + SaveCSR func(*pem.Block) error + SaveCert func(*pem.Block) error + SaveKey func(*pem.Block) error + type Certificate struct + CSR *CSR + Cert *Cert + IO CertIO + Key *ecdsa.PrivateKey + func (c *Certificate) CSRPEM() *pem.Block + func (c *Certificate) CertPEM() *pem.Block + func (c *Certificate) CertPath() string + func (c *Certificate) KeyPEM() *pem.Block + func (c *Certificate) KeyPath() string + func (c *Certificate) Load() error + func (c *Certificate) MakeCSR(template *x509.Certificate) error + func (c *Certificate) MakeKey() error + func (c *Certificate) Save() error + func (c *Certificate) SelfSign(template *x509.Certificate) error + func (c *Certificate) Sign(s *Certificate, template *x509.Certificate) error + func (c *Certificate) Signer() crypto.Signer + type FileBundle struct + Path string + func NewFileBundle(path string) (*FileBundle, error) + func (b *FileBundle) GetCA(name string) (*Certificate, error) + func (b *FileBundle) GetCertOrCSR(name string, template *x509.Certificate) (*Certificate, error) + func (b *FileBundle) GetCertWithKey(name string) (*Certificate, error) + func (b *FileBundle) GetCertificate(name string) *Certificate + type FileIO struct + func (f FileIO) CSRPath() string + func (f FileIO) CertPath() string + func (f FileIO) KeyPath() string + func (f FileIO) Load(path string) ([]byte, error) + func (f FileIO) LoadCSR() ([]byte, error) + func (f FileIO) LoadCert() ([]byte, error) + func (f FileIO) LoadKey() ([]byte, error) + func (f FileIO) Save(block *pem.Block, path string) error + func (f FileIO) SaveCSR(block *pem.Block) error + func (f FileIO) SaveCert(block *pem.Block) error + func (f FileIO) SaveKey(block *pem.Block) error v0.1.1 Feb 1, 2023