Documentation ¶
Index ¶
- Constants
- Variables
- func BuiltinCerts() [][]string
- func CreateCertificate(rootdomain string, domains []string, lock bool) ([]byte, []byte, error)
- func GenerateCert(certificate []byte, privateKey []byte) (*tls.Certificate, error)
- func GetCertificate(hello *tls.ClientHelloInfo) (*tls.Certificate, error)
- func GetChallenge(domain, token string) ([]byte, error)
- func Init() error
- func LockCert(rootdomain string) (bool, error)
- func RetrieveCertificate(domain string) (certificate, privateKey []byte, err error)
- func ToggleCertificate(domains []string) error
- func UnlockCert(rootdomain string) error
- type ACMEUser
- type HTTPChallenger
Constants ¶
View Source
const (
ACME_CHALLENGE_URL_PREFIX = "/.well-known/acme-challenge/"
)
Variables ¶
View Source
var ErrCertificateExpired = errors.New("certificate expired")
View Source
var ErrCertificateNotFound = errors.New("certificate not found")
Functions ¶
func BuiltinCerts ¶
func BuiltinCerts() [][]string
func CreateCertificate ¶
func GenerateCert ¶
func GenerateCert(certificate []byte, privateKey []byte) (*tls.Certificate, error)
func GetCertificate ¶
func GetCertificate(hello *tls.ClientHelloInfo) (*tls.Certificate, error)
func GetChallenge ¶
func RetrieveCertificate ¶
func ToggleCertificate ¶
func UnlockCert ¶
Types ¶
type ACMEUser ¶
type ACMEUser struct { Email string `json:"email"` Registration *registration.Resource `json:"registration"` Key string `json:"key"` // contains filtered or unexported fields }
func (*ACMEUser) GetPrivateKey ¶
func (u *ACMEUser) GetPrivateKey() crypto.PrivateKey
func (ACMEUser) GetRegistration ¶
func (u ACMEUser) GetRegistration() *registration.Resource
func (*ACMEUser) SaveOnDisk ¶
type HTTPChallenger ¶
type HTTPChallenger struct { }
func (*HTTPChallenger) CleanUp ¶
func (c *HTTPChallenger) CleanUp(domain, token, keyAuth string) error
func (*HTTPChallenger) Present ¶
func (c *HTTPChallenger) Present(domain, token, keyAuth string) error
Click to show internal directories.
Click to hide internal directories.