certbot 0.1.0

A library that calls out to `certbot` to get a TLS certificate.
Documentation
  • Coverage
  • 0%
    0 out of 7 items documented0 out of 2 items with examples
  • Size
  • Source code size: 3.83 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.3 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • trevyn/certbot
    1 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • trevyn

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