The official Let's Encrypt client, certbot is, as the elementary school saying goes, “stoopid and has lice on brain”. A sane client, dehydrated, exists but it sadly does no automation at all. So here's a list of steps you need to do.
Install it:
# apt install dehydrated dehydrated-apache2
Required global config: put into /etc/dehydrated/conf.d/; PRIVATE_KEY_RENEW is required for cert fingerprint stability for TLSA.
Put the list of certificates to obtain: one cert per line, list all alternate domain names for that site; into /etc/dehydrated/domains.txt.
Run it manually once:
# dehydrated -c
If you run a daemon that drops privileges early but is setgid, do:
[~]# addgroup --system ssl-cert
[~]# cd /var/lib/dehydrated
[/var/lib/dehydrated]# chown root:ssl-cert certs certs/* certs/*/*.pem
[/var/lib/dehydrated]# chmod g+x certs certs/*
[/var/lib/dehydrated]# chmod g+r certs/*/*.pem
And to reset the permissions on renewals, /etc/dehydrated/conf.d/

function deploy_cert {
    local DOMAIN="${1}" KEYFILE="${2}" CERTFILE="${3}" FULLCHAINFILE="${4}" CHAINFILE="${5}" TIMESTAMP="${6}"

    chown root:ssl-cert "$KEYFILE" "$CERTFILE" "$FULLCHAINFILE" "$CHAINFILE"
Do the actual per-daemon configuration; for example Apache:
SSLCertificateFile /var/lib/dehydrated/certs/
SSLCertificateKeyFile /var/lib/dehydrated/certs/

SSLEngine on
SSLProtocol             all -SSLv2 -SSLv3
SSLHonorCipherOrder     on
SSLCompression          off
SSLOptions +StrictRequire
Reload the daemon, test!
DANE/TLSA is important. Less so for https where the CA mafia managed to keep it down, thus we need to put up with some “solutions” that are outright harmful, like HSTS. More for SMTP where it actually sees some deployment and support in server software. Obviously, this provides less security if you don't use DNSSEC, but is still better than using only CAs.

Calculate the digest:

# openssl x509 -in cert.pem -noout -pubkey|openssl pkey -pubin -outform DER|openssl dgst -sha256|cut -d' ' -f2
Put the calculated digest as a TLSA 3 1 1 entry in your DNS zone:
_443._tcp	IN TLSA 3 1 1 0a98762f9299ac2963cdf3977a70a617a3f8d3a8cdaf1f0c3ab82ff82cbe71a2
Same for SMTP, IMAP and what else:
_25._tcp	IN TLSA 3 1 1 0a98762f9299ac2963cdf3977a70a617a3f8d3a8cdaf1f0c3ab82ff82cbe71a2
_993._tcp	IN TLSA 3 1 1 0a98762f9299ac2963cdf3977a70a617a3f8d3a8cdaf1f0c3ab82ff82cbe71a2
While we're here, also say other CAs are not authorized to issue certs for you:
@	IN CAA 0 issue ""
The certs are valid only for 90 days, you need to make a cronjob to renew them:
# crontab -e
@daily	/usr/bin/dehydrated -c >/dev/null
(It will do nothing if the cert isn't close to expiration.)