acme v0.5.1 Acme.Client
Link to this section 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
Link to this section Functions
Link to this function
account_key(pid)
Link to this function
create_hackney_opts(pid, request_opts)
Link to this function
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.
Link to this function
request(request, pid)
Link to this function
request(request, pid, opts)
Link to this function
request!(request, pid, opts \\ [])
Link to this function
retrieve_nonce(pid)
Link to this function
retrieve_server_url(pid)
Link to this function
sign_jws(payload, private_key, extra_protected_header \\ %{})
Encodes a payload into JWS map with a private key and a replay-nonce.
Link to this function
start_link(opts)
Start the Acme client.
Supports following options:
server_url
- The Acme server urlprivate_key
- A private_key either in PEM format or as a JWK map, this is required unless you useprivate_key_file
optionprivate_key_file
- Instead of a private key map/pem value, you can also pass a private key file pathconnect_timeout
- Timeout in milliseconds for establishing a request connectionrecv_timeout
- Timeout in milliseconds for receiving the response for a request
Link to this function
update_endpoints(pid, directory)
Link to this function
update_nonce(pid, new_nonce)