ol.clave.acme.account

validate-account

(validate-account account)

Validate and normalize an account map, returning the normalized map or throwing ex-info.


get-primary-contact

(get-primary-contact account)

Return the primary contact email (without scheme) or nil.


account-from-edn

(account-from-edn registration-edn)

Parse an EDN string representing account registration metadata.


serialize

(serialize account keypair)

Serialize an account map and keypair into a pretty-printed EDN artifact.

keypair is a java.security.KeyPair.


deserialize

(deserialize account-edn)

Deserialize an EDN artifact into [account keypair].

Returns a vector of [account keypair] where keypair is a java.security.KeyPair.


generate-keypair

(generate-keypair)
(generate-keypair opts)

Generate a new ACME account keypair.

Options map: | key | description | default | |--------|-----------------------------------------|---------| | :algo | key algorithm (:p256, :p384, :ed25519) | :p256 |


create

(create contact tos-agreed)
(create contact tos-agreed opts)

Construct an ACME account map suitable for directory interactions.

contact may be a single string or any sequential collection of strings; all values must be mailto: URLs per RFC 8555 Section 7.3.