acme

package
v0.0.0-...-68c81e1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: LGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CertFolder string

Functions

func GetAcmeClient

func GetAcmeClient(email string) (*lego.Client, error)

func LoadCertResource

func LoadCertResource(domain string) (*certificate.Resource, error)

func ObtainCert

func ObtainCert(email string, domain []string) (*certificate.Resource, error)

Types

type Cert

type Cert struct {
	CertID    string    `json:"SerialNumber"`
	DNSNames  []string  `json:"DNSNames"`
	NotBefore time.Time `json:"NotBefore"`
	NotAfter  time.Time `json:"NotAfter"`
}

func GetCertInfo

func GetCertInfo(cert certificate.Resource) (*Cert, error)

type User

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

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