acme

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

README

acme

A helper ACME Client designed for use within Loophole Labs projects

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDisabled = errors.New("acme is disabled")
)

Functions

This section is empty.

Types

type ACME

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

ACME is a wrapper for the acme client

func New

func New(options *Options, logger *zerolog.Logger) (*ACME, error)

func (*ACME) Certificate

func (e *ACME) Certificate() *certificate.Certifier

func (*ACME) Challenge

func (e *ACME) Challenge() *resolver.SolverManager

type Options

type Options struct {
	LogName   string
	Disabled  bool
	Email     string
	Directory string
	KID       string
	HMAC      string
}

type User

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

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

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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