mirror of
https://github.com/go-micro/go-micro.git
synced 2025-01-11 17:18:28 +02:00
29 lines
727 B
Go
29 lines
727 B
Go
// Package acme abstracts away various ACME libraries
|
|
package acme
|
|
|
|
import (
|
|
"crypto/tls"
|
|
"errors"
|
|
"net"
|
|
)
|
|
|
|
var (
|
|
// ErrProviderNotImplemented can be returned when attempting to
|
|
// instantiate an unimplemented provider.
|
|
ErrProviderNotImplemented = errors.New("Provider not implemented")
|
|
)
|
|
|
|
// Provider is a ACME provider interface.
|
|
type Provider interface {
|
|
// Listen returns a new listener
|
|
Listen(...string) (net.Listener, error)
|
|
// TLSConfig returns a tls config
|
|
TLSConfig(...string) (*tls.Config, error)
|
|
}
|
|
|
|
// The Let's Encrypt ACME endpoints.
|
|
const (
|
|
LetsEncryptStagingCA = "https://acme-staging-v02.api.letsencrypt.org/directory"
|
|
LetsEncryptProductionCA = "https://acme-v02.api.letsencrypt.org/directory"
|
|
)
|