acme

package
v0.0.0-...-7295de5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOrRenewCertificate

func GetOrRenewCertificate(config *configuration.UserConfig, days int) (bool, error)

func NewClient

func NewClient(userConfig configuration.UserConfig) (lego.Client, error)

Create a new client to request certificate

func RequestCertificate

func RequestCertificate(config configuration.UserConfig) (*certificate.Resource, error)

Request certificate according to user configuration

Types

type User

type User struct {
	Email        string
	Registration *registration.Resource
	Key          crypto.PrivateKey
}

User type that implements acme.User

Implements the following methods:

  • User.GetEmail()
  • User.GetRegistration()
  • User.GetPrivateKey()

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