mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-23 22:27:38 -05:00
09188981c4
* tls: Add support for the tls-alpn-01 challenge Also updates lego/acme to latest on master. TODO: This implementation of the tls-alpn challenge is not yet solvable in a distributed Caddy cluster like the http challenge is. * build: Allow building with the race detector * tls: Support distributed solving of the TLS-ALPN-01 challenge * Update vendor and add a todo in MITM checker
15 lines
734 B
Go
15 lines
734 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")
|
|
// TLSALPN01 is the "tls-alpn-01" ACME challenge https://tools.ietf.org/html/draft-ietf-acme-tls-alpn-01
|
|
TLSALPN01 = Challenge("tls-alpn-01")
|
|
)
|