SaltDns.Certificates.Capabilities (Salt v1.0.0)

What a provider supports, read from its ACME directory document (RFC 8555 section 7.1.1, RFC 9773). Pure: parse/1 takes the decoded JSON of the directory and returns a map with string keys (it is stored as is):

  • "external_account_required" - the provider wants an account binding key
  • "profiles" - %{name => description}
  • "renewal_info" - the directory has a renewalInfo address (RFC 9773)
  • "caa_identities" - the names for CAA records
  • "terms_of_service", "website"

Summary

Functions

The CAA identity to name in records: the first the provider lists, or nil.

Whether an account binding key is needed.

Parses a directory document.

The names of the profiles on offer, sorted.

Whether the stored capabilities say the provider offers renewal information.

Types

t()

@type t() :: %{required(String.t()) => term()}

Functions

caa_identity(capabilities)

@spec caa_identity(t()) :: String.t() | nil

The CAA identity to name in records: the first the provider lists, or nil.

external_account_required?(capabilities)

@spec external_account_required?(t()) :: boolean()

Whether an account binding key is needed.

parse(directory)

@spec parse(map()) :: t()

Parses a directory document.

profile_names(capabilities)

@spec profile_names(t()) :: [String.t()]

The names of the profiles on offer, sorted.

renewal_info?(capabilities)

@spec renewal_info?(t()) :: boolean()

Whether the stored capabilities say the provider offers renewal information.