Commit Graph

80 Commits

Author SHA1 Message Date
Dirkjan Ochtman 11c231bace Only provide AccountCredentials at account creation time 2023-08-02 11:21:50 +02:00
Dirkjan Ochtman 266ccc2415 Bump version to 0.3.4 2023-07-27 08:43:03 +02:00
Sajjad 45e73b1cc5 Adding Send trait to HttpClient response 2023-07-27 06:26:49 +02:00
Dirkjan Ochtman 72917d0350 Bump version to 0.3.3 2023-07-26 10:35:38 +02:00
Dirkjan Ochtman d671a1782c Update rcgen dependency 2023-07-26 10:35:38 +02:00
Dirkjan Ochtman a8ccff7a1c Provide better error message after failing to acquire nonce 2023-07-26 10:35:38 +02:00
Dirkjan Ochtman c0b449dd52 Extract Client::nonce() method 2023-07-26 10:35:38 +02:00
Joe Grund 4a33aae615 Derive `Clone` `Copy` for simple enums
Signed-off-by: Joe Grund <jgrund@whamcloud.io>
2023-06-20 10:30:50 +02:00
Daniel Bloom 382aada615
Replace `ResponseFuture` with `Box<dyn>` (#28) 2023-06-14 13:21:31 +02:00
Dirkjan Ochtman a5ff6ff26e Bump version to 0.3.2 2023-06-02 17:31:53 +02:00
Dirkjan Ochtman 37d742dce6 Add some bounds for HttpClient trait 2023-06-02 17:31:53 +02:00
Dirkjan Ochtman 7d379b6b74 Update links to repository 2023-05-31 10:17:21 +02:00
Dirkjan Ochtman 7643108de0 Update link to Instant Domains 2023-05-31 10:17:21 +02:00
Dirkjan Ochtman 52a070c5d2 Update MSRV in README 2023-05-31 10:17:21 +02:00
Dirkjan Ochtman e7379034ce Bump version number to 0.3.1 2023-05-31 10:17:21 +02:00
Dirkjan Ochtman fc708c325d Add blanket HttpClient impl for hyper::Client 2023-05-31 10:17:21 +02:00
Dirkjan Ochtman 1aa770c2de Make hyper-rustls dependency optional 2023-05-31 10:17:21 +02:00
Dirkjan Ochtman ae2b5aea98 Expose API to use a different HttpClient implementation 2023-05-31 10:17:21 +02:00
Dirkjan Ochtman 560ae75535 Use trait object for HTTP client implementation 2023-05-31 10:17:21 +02:00
Dirkjan Ochtman 2fa8b657a6 Bump version for public API change 2023-05-18 17:20:53 +02:00
picoHz b4ca9c11be Add support for EAB in newAccount requests 2023-05-18 17:20:53 +02:00
Dirkjan Ochtman c4f715216f Move JoseJson creation logic into new() method 2023-05-18 17:20:53 +02:00
Dirkjan Ochtman c4a1c29534 Move Signer trait into types module 2023-05-18 17:20:53 +02:00
Dirkjan Ochtman 92864b03bf Move JSON signing logic from Key to Signer 2023-05-18 17:20:53 +02:00
Dirkjan Ochtman 48cd0a0ded Defer serialization of JoseJson data 2023-05-18 17:20:53 +02:00
Dirkjan Ochtman 963ca96aa2 Move signing implementation into Signer trait 2023-05-18 17:20:53 +02:00
Dirkjan Ochtman df80c1621d Move JSON creation out of Signer trait 2023-05-18 17:20:53 +02:00
Dirkjan Ochtman 11551dedf4 Only check library target for MSRV 2023-05-12 21:28:22 +02:00
dvdsk c9a7b9da52 cargo fmt 2023-04-23 20:16:42 +02:00
dvdsk 9f9c6e48fe add comment to prevent regressing PR #17 2023-04-23 20:16:42 +02:00
David Kleingeld 3257747d6b emit Problem::check error even if no url found
Lets encrypt can return a clear error when creating a new order without returning an `order_url`. 

A missing `order_url` however triggers an early return with error message `no order URL found`. The error from lets encrypt is then never shown to the crate user.

Swapping the `state` and `url` field instantiation in `new_order`  is enough to let `Problem::check` emit the lets encrypt error.

### Example case
Requesting a certificate for *example.org*:
Original output:
```
missing data: no order URL found
```

New:
```
API error: Error creating new order :: Cannot issue for "example.org": The ACME server refuses to issue a certificate for this domain name, because it is forbidden by policy (urn:ietf:params:acme:error:rejectedIdentifier)
```
2023-04-23 16:07:10 +02:00
David Kleingeld 1a9ce194b7 Annotate Api::Problem error with thiserror::transparent
Error variant `Api::Problem` prints "API error: {problem}" however the Problem struct has display impl that starts by printing "API error". Together this results in "API error: API error" followed by the details.

This fixes that by annotating `Api::Problem` with `thiserror`'s `transparent` attribute which forwards the display impl to the underlying types display impl.
2023-04-23 15:18:14 +02:00
Dirkjan Ochtman f0a2b4ef36 Bump version to 0.2.1 2023-04-03 10:28:57 +02:00
Dirkjan Ochtman f0932a7b55 Upgrade hyper-rustls to 0.24 2023-04-03 10:28:57 +02:00
Dirkjan Ochtman 60096a1f0e Bump version to 0.2.0 2023-03-15 19:01:15 +01:00
Dirkjan Ochtman 0cc77ff2ca Postpone certificate retrieval until order is valid 2023-03-15 19:01:15 +01:00
Dirkjan Ochtman a2d4129201 Maintain OrderState within Order type 2023-03-15 19:01:15 +01:00
Dirkjan Ochtman 652c4815ec Remove hiring notice from README 2023-01-30 14:26:37 +01:00
Dirkjan Ochtman d20568be25 Bump MSRV to 1.64 due to clap 2023-01-30 14:17:37 +01:00
Dirkjan Ochtman 77e435ca01 Apply clippy suggestions for 1.67 2023-01-30 14:17:37 +01:00
Dirkjan Ochtman f53d2882bd Bump version to 0.1.3 2023-01-09 12:57:53 +01:00
Dirkjan Ochtman a438e48f02 Bump base64 dependency to 0.21 2023-01-09 12:57:53 +01:00
Nicholas Rempel 72bfbe9af7 Bump edition and set rust-version 2022-12-14 21:25:09 +01:00
Nicholas Rempel 7aabf7ec57 Remove example from README.md 2022-12-14 21:25:09 +01:00
Nicholas Rempel 485b771ca3 Add certificate provisioning example 2022-12-14 21:25:09 +01:00
Dirkjan Ochtman 9a041d5569 Bump version to 0.1.1 2022-11-15 10:11:31 +01:00
Dirkjan Ochtman 60ed0983a7 Rename to_bytes() to digest() 2022-11-15 10:11:13 +01:00
Dirkjan Ochtman 8c0a179cc9 Document challenge types in specific methods 2022-11-15 10:10:52 +01:00
Dirkjan Ochtman b87f572719 Create constructor for KeyAuthorization 2022-11-15 10:03:10 +01:00
Dirkjan Ochtman f34971b3e8 Move KeyAuthorization into crate root 2022-11-15 10:00:57 +01:00