mirror of
https://github.com/go-acme/lego.git
synced 2024-11-28 17:41:10 +02:00
42941ccea6
- Packages - Isolate code used by the CLI into the package `cmd` - (experimental) Add e2e tests for HTTP01, TLS-ALPN-01 and DNS-01, use [Pebble](https://github.com/letsencrypt/pebble) and [challtestsrv](https://github.com/letsencrypt/boulder/tree/master/test/challtestsrv) - Support non-ascii domain name (punnycode) - Check all challenges in a predictable order - No more global exported variables - Archive revoked certificates - Fixes revocation for subdomains and non-ascii domains - Disable pending authorizations - use pointer for RemoteError/ProblemDetails - Poll authz URL instead of challenge URL - The ability for a DNS provider to solve the challenge sequentially - Check all nameservers in a predictable order - Option to disable the complete propagation Requirement - CLI, support for renew with CSR - CLI, add SAN on renew - Add command to list certificates. - Logs every iteration of waiting for the propagation - update DNSimple client - update github.com/miekg/dns
29 lines
1.0 KiB
Go
29 lines
1.0 KiB
Go
package challenge
|
|
|
|
import "time"
|
|
|
|
// Provider enables implementing a custom challenge
|
|
// provider. Present presents the solution to a challenge available to
|
|
// be solved. CleanUp will be called by the challenge if Present ends
|
|
// in a non-error state.
|
|
type Provider interface {
|
|
Present(domain, token, keyAuth string) error
|
|
CleanUp(domain, token, keyAuth string) error
|
|
}
|
|
|
|
// ProviderTimeout allows for implementing a
|
|
// Provider where an unusually long timeout is required when
|
|
// waiting for an ACME challenge to be satisfied, such as when
|
|
// checking for DNS record propagation. If an implementor of a
|
|
// Provider provides a Timeout method, then the return values
|
|
// of the Timeout method will be used when appropriate by the acme
|
|
// package. The interval value is the time between checks.
|
|
//
|
|
// The default values used for timeout and interval are 60 seconds and
|
|
// 2 seconds respectively. These are used when no Timeout method is
|
|
// defined for the Provider.
|
|
type ProviderTimeout interface {
|
|
Provider
|
|
Timeout() (timeout, interval time.Duration)
|
|
}
|