#letsencrypt #tls #cert #chain #private-key #cert-paths #fullchain

certbot

A library that calls out to certbot to get a TLS certificate

1 unstable release

0.1.0 Dec 9, 2021
0.0.0 Oct 6, 2021

#2406 in Cryptography

MIT OR Apache-2.0 OR CC0-1.0

4KB

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",
}

No runtime deps