mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-23 22:27:38 -05:00
6f78cc49d1
- Using xenolf/lego's likely-temporary acmev2 branch - Cleaned up vendor folder a little bit (probably more to do) - Temporarily set default CA URL to v2 staging endpoint - Refactored user management a bit; updated tests (biggest change is how we get the email address, which now requires being able to make an ACME client with a User with a private key so that we can get the current ToS URL) - Automatic HTTPS now allows specific wildcard pattern hostnames - Commented out (but kept) the TLS-SNI code, as the challenge type may return in the future in a similar form
13 lines
590 B
Go
13 lines
590 B
Go
package acme
|
|
|
|
// Challenge is a string that identifies a particular type and version of ACME challenge.
|
|
type Challenge string
|
|
|
|
const (
|
|
// HTTP01 is the "http-01" ACME challenge https://github.com/ietf-wg-acme/acme/blob/master/draft-ietf-acme-acme.md#http
|
|
// Note: HTTP01ChallengePath returns the URL path to fulfill this challenge
|
|
HTTP01 = Challenge("http-01")
|
|
// DNS01 is the "dns-01" ACME challenge https://github.com/ietf-wg-acme/acme/blob/master/draft-ietf-acme-acme.md#dns
|
|
// Note: DNS01Record returns a DNS record which will fulfill this challenge
|
|
DNS01 = Challenge("dns-01")
|
|
)
|