SaltDns.Certificates.Thumbprint (Salt v1.0.0)

The thumbprint of an ACME account key: the JWK thumbprint of RFC 7638 (the SHA-256 of the key's required public members in canonical form, written as base64url without padding).

The key authorisation of an HTTP-01 challenge is <token>.<thumbprint> (RFC 8555, section 8.1). The thumbprint is the same for every challenge of one account, so a load balancer that knows it can answer any challenge of that account without being told the tokens. Only the public members of the key are used: the private part never leaves the provider's encrypted field.

Summary

Functions

The thumbprint of a serialised account key (the JWK as JSON), or :error.

The thumbprint of a provider's account key, or :error when it has no usable key.

Functions

of_account_key(json)

@spec of_account_key(term()) :: {:ok, String.t()} | :error

The thumbprint of a serialised account key (the JWK as JSON), or :error.

of_provider(provider)

@spec of_provider(SaltDns.Certificates.Provider.t()) :: {:ok, String.t()} | :error

The thumbprint of a provider's account key, or :error when it has no usable key.