acme

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package acme handles all the interactions with an ACME server when performing a DNS-01 Challenge

Index

Constants

This section is empty.

Variables

View Source
var (
	// IDNotFoundError is returned when the given ID is not found in the storage
	IDNotFoundError = errors.New("ID not found")
)

Functions

This section is empty.

Types

type ACME

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

ACME manages ACME DNS-01 Challenges

func New

func New(opts ...options.Option) *ACME

New creates a new instance of ACME given a set of configuration options

func (*ACME) RegisterCID

func (a *ACME) RegisterCID(id string) (string, error)

RegisterCID registers a CID for a given ID and returns the generated CID

func (*ACME) RenewDNS added in v0.3.1

func (a *ACME) RenewDNS(id string, domain string, client *lego.Client, privateKey *rsa.PrivateKey) (*certificate.Resource, error)

RenewDNS obtains an SSL Certificate using the DNS-01 Challenge for a given lego.Client and rsa.PrivateKey

Jump to

Keyboard shortcuts

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