Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jaytaph/uzi-acme-client
https://github.com/jaytaph/uzi-acme-client
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jaytaph/uzi-acme-client
- Owner: jaytaph
- Created: 2023-11-07T11:11:59.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-01-05T12:15:14.000Z (10 months ago)
- Last Synced: 2024-01-05T16:53:28.925Z (10 months ago)
- Language: PHP
- Size: 62.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Acme client for UZI
Steps:
- create a new account:
$ php uzi-acme.php account:new --email [email protected] --tos- view new account:
$ php uzi-acme.php account:view --email [email protected]
Account details for: [email protected]
+-------------------------------------+
| Key: EC/P-256 |
| Contact: mailto:[email protected] |
| Initial IP: 127.0.0.1 |
| Created At: 2023-11-13T08:34:08Z |
| Status: valid |
+-------------------------------------+- create order:
$ php uzi-acme.php order:new --email [email protected] -i jwt:
A new order has been created.
+-------------------------------------------------------------+
| Location: http://127.0.0.1:4001/acme/order/1/7 |
| Status: pending |
| Expires: 2023-11-20T10:00:26Z |
| Authorization URLs: Array |
| ( |
| [0] => http://127.0.0.1:4001/acme/authz-v3/7 |
| ) |
| |
| Finalize URL: http://127.0.0.1:4001/acme/finalize/1/7 |
+-------------------------------------------------------------+- view authorization details:
$ php uzi-acme.php auth:view --email [email protected] --url http://127.0.0.1:4001/acme/authz-v3/7
Array
(
[identifier] => Array
(
[type] => TsRoXwhqmeM22AXko44NxaUwYfgONTGR5b-yqG4tC4U
[value] => TsRoXwhqmeM22AXko44NxaUwYfgONTGR5b-yqG4tC4U
)
[status] => pending
[expires] => 2023-11-20T10:00:26Z
[challenges] => Array
(
[0] => Array
(
[type] => trusted-jwt-01
[status] => pending
[url] => http://127.0.0.1:4001/acme/chall-v3/7/hlZeEw
[token] => ChuAPeAW8kzrsd5r-5oja8lqONSbX-oZkUe0sKSOSsM
)
)
)
- Since there is no token or challenge to do for JWT tokens (all info is present in the JWT token to validate), we can simply accept authorization challenge:$ php uzi-acme.php auth:accept --email [email protected] --url http://127.0.0.1:4001/acme/chall-v3/7/hlZeEw