2016-01-15 04:06:25 +00:00
|
|
|
package acme
|
|
|
|
|
2016-02-14 06:24:19 +00:00
|
|
|
// Challenge is a string that identifies a particular type and version of ACME challenge.
|
2016-01-15 04:06:25 +00:00
|
|
|
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")
|
2018-10-12 17:29:18 +00:00
|
|
|
|
2016-01-15 04:06:25 +00:00
|
|
|
// 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")
|
2018-10-12 17:29:18 +00:00
|
|
|
|
2018-06-13 23:20:56 +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")
|
2016-01-15 04:06:25 +00:00
|
|
|
)
|