Documentation ¶
Overview ¶
Package http01 provides logic regarding ACME-HTTP-01 protocol
Index ¶
Constants ¶
View Source
const (
// WellKnownPath is the directory handled to resolve this challenge
WellKnownPath = "/.well-known/acme-challenge"
)
Variables ¶
This section is empty.
Functions ¶
func NewChallengeMiddleware ¶
NewChallengeMiddleware creates middleware using a provided HTTP-01 challenge resolver
func TokenFromPath ¶
TokenFromPath returns the path within the well-known directory and an indicator if the path pointed to the well-known directory or not
Types ¶
type ChallengeHandler ¶
type ChallengeHandler struct { Resolver acme.HTTP01Resolver // contains filtered or unexported fields }
ChallengeHandler handles /.well-known/acme-challenge requests against a given HTTP-01 Challenge Resolver
func NewChallengeHandler ¶
func NewChallengeHandler(resolver acme.HTTP01Resolver) *ChallengeHandler
NewChallengeHandler creates a handler for the provided HTTP-01 challenge resolver
func (*ChallengeHandler) ServeHTTP ¶
func (h *ChallengeHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.