ExAcme.Authorization (ExAcme v0.1.0)

View Source

Represents an ACME Authorization object.

Provides functionalities to fetch and process authorization details from the ACME server.

Attributes

  • url - The URL of the authorization.
  • status - The current status of the authorization.
  • expires - Expiration datetime of the authorization.
  • identifier - The identifier (e.g., domain) associated with the authorization.
  • challenges - List of challenges available for the authorization.
  • wildcard - Boolean indicating if the authorization is for a wildcard domain.

Summary

Types

t()

ACME Authorization object

Functions

Fetches an authorization from the ACME server.

Types

t()

@type t() :: %ExAcme.Authorization{
  challenges: [map()],
  expires: DateTime.t() | nil,
  identifier: map(),
  status: String.t(),
  url: String.t(),
  wildcard: boolean()
}

ACME Authorization object

Functions

fetch(url, account_key, client)

@spec fetch(String.t(), ExAcme.AccountKey.t(), ExAcme.client()) ::
  {:ok, t()} | {:error, term()}

Fetches an authorization from the ACME server.

Parameters

  • url - The authorization URL.
  • account_key - The account key for authentication.
  • client - The ExAcme client agent.

Returns

  • {:ok, authorization} on success.
  • {:error, reason} on failure.