Documentation ¶
Overview ¶
nolint // forked code
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CAServer ¶
type CAServer struct { URL string // server URL after it has been started Roots *x509.CertPool // CA root certificates; initialized in NewCAServer // contains filtered or unexported fields }
CAServer is a simple test server which implements ACME spec bits needed for testing.
func NewCAServer ¶
NewCAServer creates a new ACME test server and starts serving requests. The returned CAServer issues certs signed with the CA roots available in the Roots field.
The challengeTypes argument defines the supported ACME challenge types sent to a client in a response for a domain authorization. If domainsWhitelist is non-empty, the certs will be issued only for the specified list of domains. Otherwise, any domain name is allowed.
Click to show internal directories.
Click to hide internal directories.