Running certbot behind proxy

Since it is a systemd unit, something like this might work:

$ cat /etc/systemd/system/snap.certbot.renew.service.d/override.conf
[Service]
Environment=HTTPS_PROXY=https://192.168.0.1

(can also create the file by using systemctl edit snap.certbot.renew.service and pasting the two lines in).

4 Likes