Proxmox - Plugin LetsEncrypt

Installation guide:

Install Proxmox VE Deploy latest version of Certbot Install plugin with the following command :

pip install letsencrypt-proxmox

If you get this error :

root@MediaKaZ:~# pip install letsencrypt-proxmox
Collecting letsencrypt-proxmox
  Downloading letsencrypt-proxmox-0.1.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ImportError: No module named setuptools

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-LXMdEN/letsencrypt-proxmox/
pip install setuptools

Use cases:

Get/Renew and install new certificate :

certbot run --standalone-supported-challenges http-01 -t -i letsencrypt-proxmox:proxmox -d hyperviseur.infrakaz.me --no-redirect

/!\ To automate the renewal process without prompts (for example, with a monthly cron), you can add the letsencrypt parameters –renew-by-default –text

Install-only existing certificate:

cd /etc/letsencrypt/live/hyperviseur.infrakaz.me/
cp fullchain.pem /etc/pve/nodes/hyperviseur/pveproxy-ssl.pem
cp private-key.pem /etc/pve/nodes/hyperviseur/pveproxy-ssl.key

OR for DediMedia :

cd /etc/letsencrypt/live/dedimedia.infrakaz.me/
cp fullchain.pem /etc/pve/nodes/DediMedia/pveproxy-ssl.pem
cp private-key.pem /etc/pve/nodes/DediMedia/pveproxy-ssl.key

After do that, you can restart PVEProxy :

systemctl restart pveproxy

And now, regenerate SSL for ProxMox Node :

pvecm updatecerts -f
Back to top