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()
Click to show internal directories.
Click to hide internal directories.