I did the following to install my own certificates:
cp /etc/pve/pve-root-ca.pem /etc/pve/pve-root-ca.pem.orig
cp /etc/pve/local/pve-ssl.key /etc/pve/local/pve-ssl.key.orig
cp /etc/pve/local/pve-ssl.pem /etc/pve/local/pve-ssl.pem.orig
cp HLRSCA.crt /etc/pve/pve-root-ca.pem
cp vwsrv1.key /etc/pve/local/pve-ssl.key
cp vwsrv1.pem /etc/pve/local/pve-ssl.pem
service pveproxy restart
service pvedaemon restart
Result: The web interface does not work anymore
Next I followed the suggestion in:
https://pve.proxmox.com/wiki/HTTPS_Certificate_Configuration_(Version_4.x,_5.0_and_5.1)
Revert to default configuration
If you have used the previous HowTo and replaced any of the certificate or key files generated by PVE, you need to revert to the default state before proceeding.
Delete or move the following files:
Afterwards, run the following command on each node of the cluster to re-generate the certificates and keys:
pvecm updatecerts -f
Result: The web interface does not work either!
root@prox5test:/etc/pve# pveversion
pve-manager/5.2-9/4b30e8f9 (running kernel: 4.15.18-7-pve)
root@prox5test:/etc/pve#
Luckily I did it on a test proxmox server!
What is the problem?
Rgds
Dieter
cp /etc/pve/pve-root-ca.pem /etc/pve/pve-root-ca.pem.orig
cp /etc/pve/local/pve-ssl.key /etc/pve/local/pve-ssl.key.orig
cp /etc/pve/local/pve-ssl.pem /etc/pve/local/pve-ssl.pem.orig
cp HLRSCA.crt /etc/pve/pve-root-ca.pem
cp vwsrv1.key /etc/pve/local/pve-ssl.key
cp vwsrv1.pem /etc/pve/local/pve-ssl.pem
service pveproxy restart
service pvedaemon restart
Result: The web interface does not work anymore
Next I followed the suggestion in:
https://pve.proxmox.com/wiki/HTTPS_Certificate_Configuration_(Version_4.x,_5.0_and_5.1)
Revert to default configuration
If you have used the previous HowTo and replaced any of the certificate or key files generated by PVE, you need to revert to the default state before proceeding.
Delete or move the following files:
- /etc/pve/pve-root-ca.pem
- /etc/pve/priv/pve-root-ca.key
- /etc/pve/nodes/<node>/pve-ssl.pem
- /etc/pve/nodes/<node>/pve-ssl.key
Afterwards, run the following command on each node of the cluster to re-generate the certificates and keys:
pvecm updatecerts -f
Result: The web interface does not work either!
root@prox5test:/etc/pve# pveversion
pve-manager/5.2-9/4b30e8f9 (running kernel: 4.15.18-7-pve)
root@prox5test:/etc/pve#
Luckily I did it on a test proxmox server!
What is the problem?
Rgds
Dieter