acme v0.4.0 Acme.Client

Summary

Functions

(Re)Initialize a client. It calls the acme server and fetch its resource endpoints and nonce. Can be used to refreshed nonce when you encounter an invalid nonce error

Encodes a payload into JWS map with a private key and a replay-nonce

Start the Acme client

Functions

account_key(pid)
create_hackney_opts(pid, request_opts)
initialize(pid)

(Re)Initialize a client. It calls the acme server and fetch its resource endpoints and nonce. Can be used to refreshed nonce when you encounter an invalid nonce error.

request(request, pid)
request(arg1, pid, opts)
request!(request, pid, opts \\ [])
retrieve_nonce(pid)
retrieve_server_url(pid)
sign_jws(payload, private_key, extra_protected_header \\ %{})

Encodes a payload into JWS map with a private key and a replay-nonce.

start_link(opts)

Start the Acme client.

Supports following options:

  • server_url - The Acme server url
  • private_key - A private_key either in PEM format or as a JWK map, this is required unless you use private_key_file option
  • private_key_file - Instead of a private key map/pem value, you can also pass a private key file path
  • connect_timeout - Timeout in milliseconds for establishing a request connection
  • recv_timeout - Timeout in milliseconds for receiving the response for a request
update_endpoints(pid, directory)
update_nonce(pid, new_nonce)