Commit Graph

146 Commits

Author SHA1 Message Date
Deftware 8290a95649
Add certificate revocation (#38) 2024-01-29 16:18:25 +01:00
Dirkjan Ochtman a800b1bff7 Upgrade rcgen to 0.12 2024-01-25 10:23:16 +01:00
Deftware 287fa2469f Use 'Self' instead of 'LetsEncrypt' in pattern matching 2024-01-22 14:06:04 +01:00
Deftware 9c96fb26a4 Add ZeroSSL endpoints 2024-01-22 14:06:04 +01:00
Dirkjan Ochtman c4b2247fbb Bump version of actions/checkout to v4 2023-10-30 09:57:39 +01:00
Dirkjan Ochtman 8d18a91b17 Remove usage of actions-rs/cargo 2023-10-30 09:57:39 +01:00
Dirkjan Ochtman a27ef58987 Replace use of actions-rs/toolchain with dtolnay/rust-toolchain 2023-10-30 09:57:39 +01:00
Dirkjan Ochtman 4d887d22af Bump version to 0.4.1 2023-10-30 09:57:39 +01:00
Dirkjan Ochtman f73cadba4d Update to ring 0.17 2023-10-30 09:57:39 +01:00
Dirkjan Ochtman e607714b39 Bump MSRV to 1.63 for socket 0.5.3 2023-08-11 09:20:22 +02:00
Dirkjan Ochtman 3507333392 Bump version to 0.4.0 2023-08-02 11:21:50 +02:00
Dirkjan Ochtman 7aa0d46294 Only encode/decode key bytes for (de)serialization 2023-08-02 11:21:50 +02:00
Dirkjan Ochtman 3d87755f30 Stop storing private key bytes in Key type 2023-08-02 11:21:50 +02:00
Dirkjan Ochtman 803e302442 Add a direct constructor for account bits 2023-08-02 11:21:50 +02:00
Dirkjan Ochtman 0c7adf93df Add tests for credential deserialization 2023-08-02 11:21:50 +02:00
Dirkjan Ochtman ab29b552eb Tweak example code 2023-08-02 11:21:50 +02:00
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