acme

package
v0.0.3-0...-8c2b2c2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package acme implements an automatically renewing acme wildcard certificate generation implementation that performs rolling updates on the http.Server.

It uses interactsh built-in DNS server for DNS challenges.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(email, domains string, txtCallback TXTUpdateCallback) error

Generate generates new certificates based on provided info

Types

type AutoTLS

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

AutoTLS is a client for daily update checked ACME TLS

func NewAutomaticTLS

func NewAutomaticTLS(email, domains string, txtCallback TXTUpdateCallback) (*AutoTLS, error)

NewAutomaticTLS returns a new auto-tls ACME DNS based client

func (*AutoTLS) GetCertificateFunc

func (kpr *AutoTLS) GetCertificateFunc() func(*tls.ClientHelloInfo) (*tls.Certificate, error)

type CertRefreshFunc

type CertRefreshFunc func(email, domains string, txtCallback TXTUpdateCallback) error

type TXTUpdateCallback

type TXTUpdateCallback func(value string)

TXTUpdateCallback is called when a TXT value is to be updated

Jump to

Keyboard shortcuts

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