Generate Certificate for Proxmox.
Generate Certificate for Proxmox.
# SSH into your Proxmox server
ssh root@172.17.1.10
# Navigate to the certificates directory
cd /etc/pve/nodes/$(hostname)/
# Generate a new private key
openssl genrsa -out proxmox-custom.key 2048
# Create a certificate signing request
openssl req -new -key proxmox-custom.key -out proxmox-custom.csr \
-subj "/C=US/ST=State/L=City/O=Organization/CN=pve1.mydomain.com"
# Create a self-signed certificate (valid for 365 days)
openssl x509 -req -in proxmox-custom.csr -signkey proxmox-custom.key \
-out proxmox-custom.crt -days 365
# Combine certificate and any intermediate certificates
cat proxmox-custom.crt > pveproxy-ssl.pem
# Copy the private key
cp proxmox-custom.key pveproxy-ssl.key
# Set proper permissions
chmod 600 pveproxy-ssl.key
# Restart the Proxmox web service
systemctl restart pveproxy
Ins0mniA
No Comments