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
Sajjad Pourali
1f42c1e5a2
Allow direct access to SHA-256 digest of KeyAuthorization
...
This is used directly for the TLS-ALPN-01 challenge type.
2022-11-15 09:54:12 +01:00
Dirkjan Ochtman
37223c1a62
Apply clippy suggestions
2022-08-12 18:38:08 +02:00
Dirkjan Ochtman
1e4dbf33f5
Bump MSRV to 1.56.1 due to MSRV update in hashbrown 0.12.1
2022-06-23 20:27:24 +02:00
Dirkjan Ochtman
789137d799
Add a hiring notice to the README
2022-05-12 13:47:16 -07:00
Dirkjan Ochtman
278863c322
Fix the crate name
2022-05-12 22:45:33 +02:00
Dirkjan Ochtman
b7dd9c4dc0
Add API documentation
2022-05-12 21:47:01 +02:00
Dirkjan Ochtman
5b33409f41
Add some example code
2022-05-12 21:47:01 +02:00
Dirkjan Ochtman
e8e5087d86
Add Apache 2.0 license file
2022-05-12 21:47:01 +02:00
Dirkjan Ochtman
3e2d470729
Add a README
2022-05-12 21:47:01 +02:00
Dirkjan Ochtman
1cf7c81f6b
Make LetsEncrypt::url() const
2022-05-12 21:47:01 +02:00
Dirkjan Ochtman
895d580ece
Downgrade to 2018 edition for compatibility
2022-05-12 21:47:01 +02:00
Dirkjan Ochtman
e5cb50f428
Add .gitignore
2022-05-12 21:47:01 +02:00
Dirkjan Ochtman
86f17e0f84
Add CI configuration
2022-05-12 21:47:01 +02:00
Dirkjan Ochtman
f47f55c251
Add Cargo metadata
2022-05-12 21:47:01 +02:00
Dirkjan Ochtman
e2fd691ed4
Allow crate to be published
2022-05-12 21:47:01 +02:00
Dirkjan Ochtman
82daaac525
acme: simplify account serialization handling
2022-05-12 10:00:26 +02:00
Dirkjan Ochtman
8082166924
acme: reduce unnecessary cloning
2022-05-12 10:00:26 +02:00
Dirkjan Ochtman
5be34c546c
acme: inline nonce handling
2022-05-12 10:00:26 +02:00
Dirkjan Ochtman
40a561ffb5
acme: switch from reqwest to hyper
2022-05-12 10:00:26 +02:00
Dirkjan Ochtman
3e64360c59
acme: move Problem extraction into associated function
2022-05-12 10:00:26 +02:00