cert

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cert

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

func NewCert

func NewCert(options ...*Options) *Cert

func (*Cert) Generate

func (c *Cert) Generate() error

func (*Cert) Get

func (c *Cert) Get() *certificate.Resource

func (*Cert) ReadFromFile

func (c *Cert) ReadFromFile() error

func (*Cert) Renew added in v0.6.0

func (c *Cert) Renew() error

func (*Cert) Validate added in v0.6.0

func (c *Cert) Validate() (*CertDetail, error)

type CertDetail added in v0.6.0

type CertDetail struct {
	Issuer pkix.Name
	Expire time.Time
}

type Options

type Options struct {
	Email     string
	Domains   []string
	CertsPath string
	Debug     bool
}

type User

type User struct {
	Email        string
	Registration *registration.Resource
	// contains filtered or unexported fields
}

You'll need a user or account type that implements acme.User

func (*User) GetEmail

func (u *User) GetEmail() string

func (*User) GetPrivateKey

func (u *User) GetPrivateKey() crypto.PrivateKey

func (*User) GetRegistration

func (u *User) GetRegistration() *registration.Resource

Jump to

Keyboard shortcuts

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