Some sources that helped
- https://certbot.eff.org/lets-encrypt/pip-other
- https://wiki.termux.com/wiki/Package_Management
- https://medium.com/@saurabh6790/generate-wildcard-ssl-certificate-using-lets-encrypt-certbot-273e432794d7
Basic pip venv setup and updating it
python3 -m venv ~/venv/certbot
cd ~/venv/certbot
source bin/activate
pip install --upgrade pip
Needed this for the crypto part used by letsencrypt/certbot
(certbot) $ pkg install rustc-dev
This takes a while to complete
(certbot) $ pip install certbot
Where letsencrypt saves to
(certbot) $ mkdir -p data/{config,work,logs}
(certbot) $ certbot certonly --manual --preferred-challenges=dns --email email-address@somedomain.tld --server https://acme-v02.api.letsencrypt.org/directory --agree-tos --config-dir data/config/ --work-dir data/work/ --logs-dir data/logs/ -d *.somedomain.tld
- add TXT based on output of certbot
Here is what I ended up with
$ crontab -l
5 0,12 * * * source ~/venv/certbot/bin/activate && cd ~/venv/certbot && certbot renew --config-dir data/config/ --work-dir data/work/ --logs-dir data/logs/
This is my first attempt, will see if the cron runs and all work as planned.