cert

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MIT Imports: 11 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"`
	Cert       *x509.Certificate `json:"-"`
	PrivateKey *rsa.PrivateKey   `json:"-"`
	CertPEM    []byte            `json:"certificate"`
	PrivKeyPEM []byte            `json:"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) MarshalJSON added in v0.2.3

func (c *Certificate) MarshalJSON() ([]byte, error)

func (*Certificate) Save

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

func (*Certificate) UnmarshalJSON added in v0.2.3

func (c *Certificate) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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