providers

package
v0.0.0-...-607a5b3 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	URLPrefix         = "/.well-known/acme-challenge/"
	ACMEResponderPort = 56791
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPProviderServer

type HTTPProviderServer struct {
	ChallengeHolders map[string]string
	// contains filtered or unexported fields
}

HTTPProviderServer implements ChallengeProvider for `http-01` challenge It may be instantiated without using the NewHTTPProviderServer function if you want only to use the default values.

func DefaultHTTPProvider

func DefaultHTTPProvider() *HTTPProviderServer

func NewHTTPProviderServer

func NewHTTPProviderServer() *HTTPProviderServer

NewHTTPProviderServer creates a new HTTPProviderServer on the selected interface and port. Setting iface and / or port to an empty string will make the server fall back to the "any" interface and port 80 respectively.

func (*HTTPProviderServer) CleanUp

func (s *HTTPProviderServer) CleanUp(domain, token, keyAuth string) error

CleanUp closes the HTTP server and removes the token from `HTTP01ChallengePath(token)`

func (*HTTPProviderServer) NewServeMux

func (s *HTTPProviderServer) NewServeMux() *http.ServeMux

func (*HTTPProviderServer) Present

func (s *HTTPProviderServer) Present(domain, token, keyAuth string) error

Present starts a web server and makes the token available at `HTTP01ChallengePath(token)` for web requests.

func (*HTTPProviderServer) Serve

func (s *HTTPProviderServer) Serve()

Jump to

Keyboard shortcuts

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