cert

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
	Name       string            `json:"name" yaml:"name"`
	Cert       *x509.Certificate `json:"-" yaml:"-"`
	PrivateKey *rsa.PrivateKey   `json:"-" yaml:"-"`
	CertPEM    []byte            `json:"certificate" yaml:"certificate"`
	PrivKeyPEM []byte            `json:"-" yaml:"privateKey"`
}

func Generate

func Generate(name string, org string, country string, ou string, expires string) (*Certificate, error)

func (*Certificate) Load

func (c *Certificate) Load(rootPath string) error

func (*Certificate) MarshalYAML added in v0.2.4

func (c *Certificate) MarshalYAML() (interface{}, error)

func (*Certificate) Save

func (c *Certificate) Save(rootPath string) error

func (*Certificate) UnmarshalYAML added in v0.2.4

func (c *Certificate) UnmarshalYAML(value *yaml.Node) error

Jump to

Keyboard shortcuts

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