2019-10-09 18:42:05 +03:00
|
|
|
// Package acme abstracts away various ACME libraries
|
|
|
|
package acme
|
|
|
|
|
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
"net"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
2019-10-11 18:25:15 +03:00
|
|
|
// ErrProviderNotImplemented can be returned when attempting to
|
|
|
|
// instantiate an unimplemented provider
|
2019-10-09 18:42:05 +03:00
|
|
|
ErrProviderNotImplemented = errors.New("Provider not implemented")
|
|
|
|
)
|
|
|
|
|
|
|
|
// Provider is a ACME provider interface
|
|
|
|
type Provider interface {
|
|
|
|
NewListener(...string) (net.Listener, error)
|
|
|
|
}
|
2019-10-11 18:25:15 +03:00
|
|
|
|
|
|
|
// The Let's Encrypt ACME endpoints
|
|
|
|
const (
|
|
|
|
LetsEncryptStagingCA = "https://acme-staging-v02.api.letsencrypt.org/directory"
|
|
|
|
LetsEncryptProductionCA = "https://acme-v02.api.letsencrypt.org/directory"
|
|
|
|
)
|