Versions in this module Expand all Collapse all v1 v1.8.0 Sep 21, 2018 v1.6.7 Feb 27, 2018 Changes in this version + const LetsEncryptURL + const StatusInvalid + const StatusPending + const StatusProcessing + const StatusRevoked + const StatusUnknown + const StatusValid + var ErrAuthorizationFailed = errors.New("acme: identifier authorization failed") + var ErrUnsupportedKey = errors.New("acme: unknown key type; only RSA and ECDSA are supported") + func AcceptTOS(tosURL string) bool + func JWKThumbprint(pub crypto.PublicKey) (string, error) + type Account struct + AgreedTerms string + Authorizations string + Authz string + Certificates string + Contact []string + CurrentTerms string + URI string + type Authorization struct + Challenges []*Challenge + Combinations [][]int + Identifier AuthzID + Status string + URI string + type AuthzID struct + Type string + Value string + type CRLReasonCode int + const CRLReasonAACompromise + const CRLReasonAffiliationChanged + const CRLReasonCACompromise + const CRLReasonCertificateHold + const CRLReasonCessationOfOperation + const CRLReasonKeyCompromise + const CRLReasonPrivilegeWithdrawn + const CRLReasonRemoveFromCRL + const CRLReasonSuperseded + const CRLReasonUnspecified + type CertOption interface + func WithKey(key crypto.Signer) CertOption + func WithTemplate(t *x509.Certificate) CertOption + type Challenge struct + Status string + Token string + Type string + URI string + type Client struct + DirectoryURL string + HTTPClient *http.Client + Key crypto.Signer + func (c *Client) Accept(ctx context.Context, chal *Challenge) (*Challenge, error) + func (c *Client) Authorize(ctx context.Context, domain string) (*Authorization, error) + func (c *Client) CreateCert(ctx context.Context, csr []byte, exp time.Duration, bundle bool) (der [][]byte, certURL string, err error) + func (c *Client) DNS01ChallengeRecord(token string) (string, error) + func (c *Client) Discover(ctx context.Context) (Directory, error) + func (c *Client) FetchCert(ctx context.Context, url string, bundle bool) ([][]byte, error) + func (c *Client) GetAuthorization(ctx context.Context, url string) (*Authorization, error) + func (c *Client) GetChallenge(ctx context.Context, url string) (*Challenge, error) + func (c *Client) GetReg(ctx context.Context, url string) (*Account, error) + func (c *Client) HTTP01ChallengePath(token string) string + func (c *Client) HTTP01ChallengeResponse(token string) (string, error) + func (c *Client) Register(ctx context.Context, a *Account, prompt func(tosURL string) bool) (*Account, error) + func (c *Client) RevokeAuthorization(ctx context.Context, url string) error + func (c *Client) RevokeCert(ctx context.Context, key crypto.Signer, cert []byte, reason CRLReasonCode) error + func (c *Client) TLSSNI01ChallengeCert(token string, opt ...CertOption) (cert tls.Certificate, name string, err error) + func (c *Client) TLSSNI02ChallengeCert(token string, opt ...CertOption) (cert tls.Certificate, name string, err error) + func (c *Client) UpdateReg(ctx context.Context, a *Account) (*Account, error) + func (c *Client) WaitAuthorization(ctx context.Context, url string) (*Authorization, error) + type Directory struct + AuthzURL string + CAA []string + CertURL string + RegURL string + RevokeURL string + Terms string + Website string + type Error struct + Detail string + Header http.Header + ProblemType string + StatusCode int + func (e *Error) Error() string