Versions in this module Expand all Collapse all v1 v1.2.1 Nov 5, 2018 Changes in this version + const ACMETLS1Protocol + const DNS01 + const DefaultPollingInterval + const DefaultPropagationTimeout + const DefaultTTL + const EC256 + const EC384 + const HTTP01 + const OCSPGood + const OCSPRevoked + const OCSPServerFailed + const OCSPUnknown + const RSA2048 + const RSA4096 + const RSA8192 + const TLSALPN01 + var DNSTimeout = 10 * time.Second + var HTTPClient = http.Client + var PreCheckDNS preCheckDNSFunc = checkDNSPropagation + var RecursiveNameservers = getNameservers(defaultResolvConf, defaultNameservers) + var UserAgent string + func ClearFqdnCache() + func DNS01Record(domain, keyAuth string) (fqdn string, value string, ttl int) + func FindZoneByFqdn(fqdn string, nameservers []string) (string, error) + func GetOCSPForCert(bundle []byte) ([]byte, *ocsp.Response, error) + func GetPEMCertExpiration(cert []byte) (time.Time, error) + func HTTP01ChallengePath(token string) string + func TLSALPNChallengeBlocks(domain, keyAuth string) ([]byte, []byte, error) + func TLSALPNChallengeCert(domain, keyAuth string) (*tls.Certificate, error) + func ToFqdn(name string) string + func UnFqdn(name string) string + func WaitFor(timeout, interval time.Duration, f func() (bool, error)) error + type CertificateResource struct + AccountRef string + CSR []byte + CertStableURL string + CertURL string + Certificate []byte + Domain string + IssuerCertificate []byte + 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) DeleteRegistration() error + func (c *Client) ExcludeChallenges(challenges []Challenge) + func (c *Client) GetExternalAccountRequired() bool + func (c *Client) GetToSURL() string + func (c *Client) ObtainCertificate(domains []string, bundle bool, privKey crypto.PrivateKey, mustStaple bool) (*CertificateResource, error) + func (c *Client) ObtainCertificateForCSR(csr x509.CertificateRequest, bundle bool) (*CertificateResource, error) + func (c *Client) QueryRegistration() (*RegistrationResource, error) + func (c *Client) Register(tosAgreed bool) (*RegistrationResource, error) + func (c *Client) RegisterWithExternalAccountBinding(tosAgreed bool, kid string, hmacEncoded string) (*RegistrationResource, error) + func (c *Client) RenewCertificate(cert CertificateResource, bundle, mustStaple bool) (*CertificateResource, error) + func (c *Client) ResolveAccountByKey() (*RegistrationResource, 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 DNSProviderManual struct + func NewDNSProviderManual() (*DNSProviderManual, error) + func (*DNSProviderManual) CleanUp(domain, token, keyAuth string) error + func (*DNSProviderManual) Present(domain, token, keyAuth 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 NonceError struct + type ObtainError map[string]error + func (e ObtainError) Error() string + type RegistrationResource struct + Body accountMessage + URI string + type RemoteError struct + Detail string + StatusCode int + Type string + func (e RemoteError) Error() string + type TLSALPNProviderServer struct + func NewTLSALPNProviderServer(iface, port string) *TLSALPNProviderServer + func (t *TLSALPNProviderServer) CleanUp(domain, token, keyAuth string) error + func (t *TLSALPNProviderServer) Present(domain, token, keyAuth string) error + type TOSError struct + type User interface + GetEmail func() string + GetPrivateKey func() crypto.PrivateKey + GetRegistration func() *RegistrationResource Incompatible versions in this module v2.7.2+incompatible Jul 31, 2019