Versions in this module Expand all Collapse all v0 v0.0.9 Oct 30, 2019 Changes in this version + const DNS01 + const EC256 + const EC384 + const HTTP01 + const OCSPGood + const OCSPRevoked + const OCSPServerFailed + const OCSPUnknown + const RSA2048 + const RSA4096 + const RSA8192 + const TLSSNI01 + var Logger *log.Logger + var UserAgent string + func GetOCSPForCert(bundle []byte) ([]byte, *ocsp.Response, error) + func GetPEMCertExpiration(cert []byte) (time.Time, error) + func HTTP01ChallengePath(token string) string + func TLSSNI01ChallengeCert(keyAuth string) (tls.Certificate, error) + func TLSSNI01ChallengeCertDomain(keyAuth string) (tls.Certificate, string, error) + func WaitFor(timeout, interval time.Duration, f func() (bool, error)) error + type CertificateResource struct + AccountRef string + CertStableURL string + CertURL string + Certificate []byte + Domain string + PrivateKey []byte + type Challenge string + type ChallengeProvider interface + CleanUp func(domain, token, keyAuth string) error + Present func(domain, token, keyAuth string) error + type ChallengeProviderTimeout interface + Timeout func() (timeout, interval time.Duration) + type Client struct + func NewClient(caDirURL string, user User, keyType KeyType) (*Client, error) + func (c *Client) AgreeToTOS() error + func (c *Client) ExcludeChallenges(challenges []Challenge) + func (c *Client) ObtainCertificate(domains []string, bundle bool, privKey crypto.PrivateKey) (CertificateResource, map[string]error) + func (c *Client) Register() (*RegistrationResource, error) + func (c *Client) RenewCertificate(cert CertificateResource, bundle bool) (CertificateResource, error) + func (c *Client) RevokeCertificate(certificate []byte) error + func (c *Client) SetChallengeProvider(challenge Challenge, p ChallengeProvider) error + func (c *Client) SetHTTPAddress(iface string) error + func (c *Client) SetTLSAddress(iface string) error + type HTTPProviderServer struct + func NewHTTPProviderServer(iface, port string) *HTTPProviderServer + func (s *HTTPProviderServer) CleanUp(domain, token, keyAuth string) error + func (s *HTTPProviderServer) Present(domain, token, keyAuth string) error + type KeyType string + type Registration struct + Agreement string + Authorizations string + Certificates string + Contact []string + ID int + Key jose.JsonWebKey + Resource string + type RegistrationResource struct + Body Registration + NewAuthzURL string + TosURL string + URI string + type RemoteError struct + Detail string + StatusCode int + Type string + func (e RemoteError) Error() string + type TLSProviderServer struct + func NewTLSProviderServer(iface, port string) *TLSProviderServer + func (s *TLSProviderServer) CleanUp(domain, token, keyAuth string) error + func (s *TLSProviderServer) Present(domain, token, keyAuth string) error + type TOSError struct + type User interface + GetEmail func() string + GetPrivateKey func() crypto.PrivateKey + GetRegistration func() *RegistrationResource