certbot

Crates.iocertbot
lib.rscertbot
version0.1.0
sourcesrc
created_at2021-10-06 15:10:11.992323
updated_at2021-12-09 12:12:45.886125
descriptionA library that calls out to `certbot` to get a TLS certificate.
homepage
repositoryhttps://github.com/trevyn/certbot
max_upload_size
id461218
size4,148
(trevyn)

documentation

https://docs.rs/certbot

README

certbot

A quick and dirty interface to certbot. Expects to be root on an Ubuntu machine. Uses apt install -y certbot to make sure certbot is installed.

certbot::get_cert_paths("my@email.com", "thismachine.domain.com").unwrap();
CertPaths {
    cert: "/etc/letsencrypt/live/thismachine.domain.com/cert.pem",
    chain: "/etc/letsencrypt/live/thismachine.domain.com/chain.pem",
    fullchain: "/etc/letsencrypt/live/thismachine.domain.com/fullchain.pem",
    privkey: "/etc/letsencrypt/live/thismachine.domain.com/privkey.pem",
}
Commit count: 3

cargo fmt