Versions in this module Expand all Collapse all v0 v0.0.3 May 1, 2024 v0.0.2 May 1, 2024 Changes in this version + const ChallengeTypeDNS01 + const ChallengeTypeDeviceAttest01 + const ChallengeTypeEmailReply00 + const ChallengeTypeHTTP01 + const ChallengeTypeTLSALPN01 + const ProblemTypeAccountDoesNotExist + const ProblemTypeAlreadyRevoked + const ProblemTypeBadCSR + const ProblemTypeBadNonce + const ProblemTypeBadPublicKey + const ProblemTypeBadRevocationReason + const ProblemTypeBadSignatureAlgorithm + const ProblemTypeCAA + const ProblemTypeCompound + const ProblemTypeConnection + const ProblemTypeDNS + const ProblemTypeExternalAccountRequired + const ProblemTypeIncorrectResponse + const ProblemTypeInvalidContact + const ProblemTypeMalformed + const ProblemTypeNamespace + const ProblemTypeOrderNotReady + const ProblemTypeRateLimited + const ProblemTypeRejectedIdentifier + const ProblemTypeServerInternal + const ProblemTypeTLS + const ProblemTypeUnauthorized + const ProblemTypeUnsupportedContact + const ProblemTypeUnsupportedIdentifier + const ProblemTypeUserActionRequired + const ReasonAACompromise + const ReasonAffiliationChanged + const ReasonCACompromise + const ReasonCertificateHold + const ReasonCessationOfOperation + const ReasonKeyCompromise + const ReasonPrivilegeWithdrawn + const ReasonRemoveFromCRL + const ReasonSuperseded + const ReasonUnspecified + const StatusDeactivated + const StatusExpired + const StatusInvalid + const StatusPending + const StatusProcessing + const StatusReady + const StatusRevoked + const StatusValid + func ARIUniqueIdentifier(leafCert *x509.Certificate) string + type Account struct + Contact []string + ExternalAccountBinding json.RawMessage + Location string + Orders string + PrivateKey crypto.Signer + Status string + TermsOfServiceAgreed bool + func (a *Account) SetExternalAccountBinding(ctx context.Context, client *Client, eab EAB) error + type Authorization struct + Challenges []Challenge + Expires time.Time + Identifier Identifier + Location string + Status string + Wildcard bool + func (authz Authorization) IdentifierValue() string + type Certificate struct + CA string + ChainPEM []byte + URL string + type Challenge struct + Error *Problem + From string + Identifier Identifier + KeyAuthorization string + Payload any + Status string + Token string + Type string + URL string + Validated string + func (c Challenge) DNS01KeyAuthorization() string + func (c Challenge) DNS01TXTRecordName() string + func (c Challenge) HTTP01ResourcePath() string + func (c Challenge) MailReply00KeyAuthorization(mailSubject string) (string, error) + type Client struct + Directory string + HTTPClient *http.Client + PollInterval time.Duration + PollTimeout time.Duration + UserAgent string + func (c *Client) AccountKeyRollover(ctx context.Context, account Account, newPrivateKey crypto.Signer) (Account, error) + func (c *Client) DeactivateAuthorization(ctx context.Context, account Account, authzURL string) (Authorization, error) + func (c *Client) FinalizeOrder(ctx context.Context, account Account, order Order, csrASN1DER []byte) (Order, error) + func (c *Client) GetAccount(ctx context.Context, account Account) (Account, error) + func (c *Client) GetAuthorization(ctx context.Context, account Account, authzURL string) (Authorization, error) + func (c *Client) GetCertificateChain(ctx context.Context, account Account, certURL string) ([]Certificate, error) + func (c *Client) GetDirectory(ctx context.Context) (Directory, error) + func (c *Client) GetOrder(ctx context.Context, account Account, order Order) (Order, error) + func (c *Client) GetRenewalInfo(ctx context.Context, leafCert *x509.Certificate) (RenewalInfo, error) + func (c *Client) InitiateChallenge(ctx context.Context, account Account, challenge Challenge) (Challenge, error) + func (c *Client) NewAccount(ctx context.Context, account Account) (Account, error) + func (c *Client) NewAuthorization(ctx context.Context, account Account, id Identifier) (Authorization, error) + func (c *Client) NewOrder(ctx context.Context, account Account, order Order) (Order, error) + func (c *Client) PollAuthorization(ctx context.Context, account Account, authz Authorization) (Authorization, error) + func (c *Client) RevokeCertificate(ctx context.Context, account Account, cert *x509.Certificate, ...) error + func (c *Client) UpdateAccount(ctx context.Context, account Account) (Account, error) + type Directory struct + KeyChange string + Meta *DirectoryMeta + NewAccount string + NewAuthz string + NewNonce string + NewOrder string + RenewalInfo string + RevokeCert string + type DirectoryMeta struct + CAAIdentities []string + ExternalAccountRequired bool + TermsOfService string + Website string + type EAB struct + KeyID string + MACKey string + type Identifier struct + Type string + Value string + type Order struct + Authorizations []string + Certificate string + Error *Problem + Expires time.Time + Finalize string + Identifiers []Identifier + Location string + NotAfter *time.Time + NotBefore *time.Time + Replaces string + Status string + type Problem struct + Detail string + Instance string + Resource any + Status int + Subproblems []Subproblem + Title string + Type string + func (p Problem) Error() string + type RenewalInfo struct + ExplanationURL string + RetryAfter time.Time + SuggestedWindow struct{ ... } + type Subproblem struct + Identifier Identifier