mirror of
https://github.com/go-acme/lego.git
synced 2024-12-01 10:41:09 +02:00
971541dc0a
This will prevent indefinitely-hanging requests in case some service or middle box is malfunctioning. Fix vet errors and lint warnings Add vet to CI check Only get issuer certificate if it would be used No need to make a GET request if the OCSP server is not specified in leaf certificate Fix CI tests Make tests verbose
17 lines
867 B
Go
17 lines
867 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")
|
|
// TLSSNI01 is the "tls-sni-01" ACME challenge https://github.com/ietf-wg-acme/acme/blob/master/draft-ietf-acme-acme.md#tls-with-server-name-indication-tls-sni
|
|
// Note: TLSSNI01ChallengeCert returns a certificate to fulfill this challenge
|
|
TLSSNI01 = Challenge("tls-sni-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")
|
|
)
|