package
0.0.0-20250220232038-fb2fd8af7512
Repository: https://github.com/letsencrypt/boulder.git
Documentation: pkg.go.dev
# Functions
NewChallengeStrategy returns the ChallengeStrategy for the given ChallengeStrategyName, or an error if it is unknown.
NewDirectory creates a Directory populated from the ACME directory resource returned by a GET request to the provided directoryURL.
# Constants
The following challenge strategies will always pick the named challenge type or return an error if there isn't a challenge of that type to pick.
KeyChangeEndpoint is the directory key for the keyChange endpoint.
NewAccountEndpoint is the directory key for the newAccount endpoint.
NewNonceEndpoint is the directory key for the newNonce endpoint.
NewOrderEndpoint is the directory key for the newOrder endpoint.
RandomChallengeStrategy is the name for a random challenge selection strategy that will choose one of the authorization's challenges at random.
RevokeCertEndpoint is the directory key for the revokeCert endpoint.
# Variables
ErrEmptyDirectory is returned if NewDirectory is provided and empty directory URL.
ErrInvalidDirectoryHTTPCode is returned if NewDirectory is provided a directory URL that returns something other than HTTP Status OK to a GET request.
ErrInvalidDirectoryJSON is returned if NewDirectory is provided a directory URL that returns invalid JSON.
ErrInvalidDirectoryMeta is returned if NewDirectory is provided a directory URL that returns a directory resource with an invalid or missing "meta" key.
ErrInvalidDirectoryURL is returned if NewDirectory is provided an invalid directory URL.
ErrInvalidTermsOfService is returned if NewDirectory is provided a directory URL that returns a directory resource with an invalid or missing "termsOfService" key in the "meta" map.
RequiredEndpoints is a slice of Endpoint keys that must be present in the ACME server's directory.
# Structs
Directory is a type for holding URLs extracted from the ACME server's Directory resource.
ErrInvalidEndpointURL is an error returned if NewDirectory is provided an ACME server directory URL that has an invalid URL for a required endpoint.
ErrMissingEndpoint is an error returned if NewDirectory is provided an ACME server directory URL that is missing a key for a required endpoint in the response JSON.
# Interfaces
ChallengeStrategy is an interface describing a strategy for picking a challenge from a given authorization.
# Type aliases
Endpoint represents a string key used for looking up an endpoint URL in an ACME server directory resource.