Crates.io | acme-rs |
lib.rs | acme-rs |
version | 0.2.0 |
source | src |
created_at | 2021-02-11 16:43:47.757737 |
updated_at | 2021-03-03 12:19:58.296216 |
description | An acme client (RFC8555) written in the rust programming language |
homepage | |
repository | https://github.com/kariustobias/acme-rs |
max_upload_size | |
id | 353850 |
size | 88,668 |
An ACME
Client for Let's Encrypt written in Rust to request SSL/TLS certificates. This client follows the guidelines specified in RFC8555.
acme-rs
in its current state does only support the http challenge. The port 80 must not be blocked. --server
flag. Just make sure you pass in the URL pointing to the directory information. The client then fetches all paths for further requests from the endpoint.This crate also exposes a libary which allows users to acquire a certificate within their own code. The documentation can be found on docs.rs. The main function exposed by the libary is generate_cert_for_domain
.
The installation process is done via crates.io
. To install the lates version of this tool just run
cargo install acme-rs
you could also specify the installation path (e.g. if you would like to install the tool system wide):
cargo install acme-rs --root /usr/local/bin
acme-rs
is using the openssl
rust wrapper crate to generate keys and the csr.
The client will store the certificate and the certificate chain in the files cert.crt
and chain.crt
You can request a certificate by using the following command:
acme-rs [OPTIONS] --domain <domain> --email <email>
By running the command acme-rs --help
you can get an overview of all the commands available.
An acme client (RFC8555) written in the rust programming language
USAGE:
acme-rs [FLAGS] [OPTIONS] --email <email> --domain <domain>
FLAGS:
-h, --help Prints help information
-v, --verbose Enables debug output
-V, --version Prints version information
OPTIONS:
-d, --domain <domain> The domain to register the certificate for
-e, --email <email>
--private-key <private-key> An optional private key file (PEM format) to load the keys
from
--public-key <public-key>
-s, --server <server> The ACME server's URL