2017-06-17 18:06:39 +02:00
|
|
|
|
|
|
|
-record(challenge, {
|
2017-07-03 12:37:32 +02:00
|
|
|
type = <<"http-01">> :: bitstring(),
|
|
|
|
status = pending :: pending | valid | invalid,
|
|
|
|
uri = "" :: url(),
|
|
|
|
token = <<"">> :: bitstring()
|
|
|
|
}).
|
|
|
|
|
|
|
|
-record(data_acc, {
|
|
|
|
id :: list(),
|
|
|
|
key :: jose_jwk:key()
|
|
|
|
}).
|
|
|
|
|
2017-07-18 12:28:44 +02:00
|
|
|
-record(data_cert, {
|
2017-07-27 17:25:44 +02:00
|
|
|
domain :: bitstring(),
|
|
|
|
pem :: bitstring(),
|
|
|
|
path :: bitstring()
|
2017-07-18 12:28:44 +02:00
|
|
|
}).
|
2017-07-17 08:35:37 +02:00
|
|
|
|
2017-06-17 18:06:39 +02:00
|
|
|
|
2017-07-17 08:35:37 +02:00
|
|
|
|
|
|
|
|
2017-06-17 18:06:39 +02:00
|
|
|
-type nonce() :: string().
|
|
|
|
-type url() :: string().
|
|
|
|
-type proplist() :: [{_, _}].
|
2017-07-03 12:37:32 +02:00
|
|
|
-type dirs() :: #{string() => url()}.
|
2017-06-17 18:06:39 +02:00
|
|
|
-type jws() :: map().
|
|
|
|
-type handle_resp_fun() :: fun(({ok, proplist(), proplist()}) -> {ok, _, nonce()}).
|
|
|
|
|
|
|
|
-type acme_challenge() :: #challenge{}.
|
2017-07-07 16:37:44 +02:00
|
|
|
|
|
|
|
-type account_opt() :: string().
|
|
|
|
|
|
|
|
-type pem_certificate() :: bitstring().
|