Networking & Security

Proxmox SSL Setup: Let's Encrypt Certificate and Custom Domain

Remove the browser warning on Proxmox VE port 8006 using built-in Let's Encrypt ACME (HTTP-01 or Cloudflare DNS-01) and put Proxmox behind an Nginx reverse proxy on port 443.

Out of the box, Proxmox VE generates a self-signed certificate for port 8006. Clicking past browser warnings every morning is annoying enough, and strict API clients will reject the connection completely whenever TLS verification is turned on.

Proxmox ships with its own built-in ACME / Let's Encrypt client, so you do not need Certbot or custom cron scripts. If you also want to drop :8006 from the URL entirely, a thin Nginx reverse proxy handles HTTPS on port 443 cleanly.

Option 1: Built-in Proxmox ACME with Let's Encrypt (Fastest)

Create a DNS A record pointing your chosen hostname to the Proxmox host IP (for example pve1.example.com → HOST_IP). If your DNS lives on Cloudflare, leave the proxy cloud grey (DNS Only) because Cloudflare's standard proxy does not pass port 8006.

Register an ACME account and request the certificate directly from SSH (or under Datacenter → ACME in the UI):

pvenode acme account register default admin@example.com --directory https://acme-v02.api.letsencrypt.org/directory
pvenode config set --acme domains=pve1.example.com
pvenode acme cert order

Proxmox listens briefly on port 80 to pass HTTP-01 validation, installs the signed cert, and reloads pveproxy. Automatic renewal runs 30 days before expiry via pve-daily-update.timer.

Keeping port 80 closed: DNS-01 via Cloudflare API

On production hosts where port 80 stays firewalled from the public internet, use DNS-01 validation instead:

  1. Create a Cloudflare API token scoped strictly to Zone:DNS:Edit for that single zone.
  2. In Proxmox, open Datacenter → ACME → Challenge Plugins → Add, pick Cloudflare Managed DNS, and enter your CF_Token.
  3. Under Node → System → Certificates → ACME → Add, enter your hostname, pick the Cloudflare plugin, and click Order Certificates Now.

Option 2: Custom domain on port 443 via Nginx Reverse Proxy

To access Proxmox at https://pve1.example.com without typing :8006, put Nginx in front. Two headers are mandatory here: Upgrade and Connection. Leave them out and the web UI loads fine while every noVNC console silently fails to connect:

server {
    listen 443 ssl http2;
    server_name pve1.example.com;

    ssl_certificate     /etc/letsencrypt/live/pve1.example.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/pve1.example.com/privkey.pem;

    proxy_redirect off;

    location / {
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $http_host;
        proxy_pass https://127.0.0.1:8006;
        proxy_buffering off;
        client_max_body_size 0;
        proxy_connect_timeout 3600s;
        proxy_read_timeout 3600s;
        proxy_send_timeout 3600s;
    }
}

Include client_max_body_size 0; so uploading multi-gigabyte Windows ISO images does not abort with Nginx 413 Request Entity Too Large. Once verified, firewall port 8006 externally so only 127.0.0.1 (or your proxy host) can reach it.

For end-user access, keep Proxmox 8006 strictly internal for admins and give customers console, power, and reinstall controls under your own domain through VMRobot. Follow the VMRobot setup guide to get connected in minutes.