traefik/vendor/github.com/xenolf/lego/acme/challenges.go

18 lines
736 B
Go
Raw Normal View History

2018-05-31 07:30:04 +00:00
package acme
2018-03-26 12:12:03 +00:00
// Challenge is a string that identifies a particular type and version of ACME challenge.
type Challenge string
const (
2018-05-31 07:30:04 +00:00
// HTTP01 is the "http-01" ACME challenge https://github.com/ietf-wg-acme/acme/blob/master/draft-ietf-acme-acme.md#http
2018-03-26 12:12:03 +00:00
// Note: HTTP01ChallengePath returns the URL path to fulfill this challenge
HTTP01 = Challenge("http-01")
2018-10-15 07:40:02 +00:00
2018-05-31 07:30:04 +00:00
// DNS01 is the "dns-01" ACME challenge https://github.com/ietf-wg-acme/acme/blob/master/draft-ietf-acme-acme.md#dns
2018-03-26 12:12:03 +00:00
// Note: DNS01Record returns a DNS record which will fulfill this challenge
DNS01 = Challenge("dns-01")
2018-10-15 07:40:02 +00:00
2018-07-03 10:44:04 +00:00
// TLSALPN01 is the "tls-alpn-01" ACME challenge https://tools.ietf.org/html/draft-ietf-acme-tls-alpn-01
TLSALPN01 = Challenge("tls-alpn-01")
2018-03-26 12:12:03 +00:00
)