Hi guys,
I've spent ages bashing my head at bits of getting external-ca certificates working - the last hurdle turned out to be needing to append an intermediate CA cert to /etc/pve/pve-root-ca.pem.
After setting up my certificates (and intially get it wrong because I'd not followed the wiki well enough and touching the ones *not* to touch once i'd had initial problems...) I found I could not start one of my VMs - and it took checking /var/log/syslog or running 'qm start 100' to see the errors.
I was getting the dreaded errors of:
This was despite me following:
https://pve.proxmox.com/wiki/HTTPS_Certificate_Configuration_(Version_4.x_and_newer)
What fixed it was:
appending an active intermediate cert from letsencrypt.org/certificates/ to the end of /etc/pve/local/pve-ssl.pem
I guess its worth me admitting that i didn't actually use acme.sh - I'd already made the certs I wanted to use on my temporarily exposed webserver on a different host, so perchance my steps didn't replicate acme.sh exactly - but putting in a note mentioning the above at the end of the wiki page would likely save a lot of people a lot of headaches!
... Also - In my searching I'd found mention that letsencrypt features were to be somehow integrated into proxmox a year or two ago - did that end up happening and I just missed it?
Thanks
I've spent ages bashing my head at bits of getting external-ca certificates working - the last hurdle turned out to be needing to append an intermediate CA cert to /etc/pve/pve-root-ca.pem.
After setting up my certificates (and intially get it wrong because I'd not followed the wiki well enough and touching the ones *not* to touch once i'd had initial problems...) I found I could not start one of my VMs - and it took checking /var/log/syslog or running 'qm start 100' to see the errors.
I was getting the dreaded errors of:
root@pve:~/pve# qm start 100
kvm: -vnc unix:/var/run/qemu-server/100.vnc,x509,password: Failed to start VNC server: Our own certificate /etc/pve/local/pve-ssl.pem failed validation against /etc/pve/pve-root-ca.pem: The certificate hasn't got a known issuer
start failed: command '/usr/bin/kvm -id 100 ....<etc>'
kvm: -vnc unix:/var/run/qemu-server/100.vnc,x509,password: Failed to start VNC server: Our own certificate /etc/pve/local/pve-ssl.pem failed validation against /etc/pve/pve-root-ca.pem: The certificate hasn't got a known issuer
start failed: command '/usr/bin/kvm -id 100 ....<etc>'
This was despite me following:
https://pve.proxmox.com/wiki/HTTPS_Certificate_Configuration_(Version_4.x_and_newer)
What fixed it was:
appending an active intermediate cert from letsencrypt.org/certificates/ to the end of /etc/pve/local/pve-ssl.pem
I guess its worth me admitting that i didn't actually use acme.sh - I'd already made the certs I wanted to use on my temporarily exposed webserver on a different host, so perchance my steps didn't replicate acme.sh exactly - but putting in a note mentioning the above at the end of the wiki page would likely save a lot of people a lot of headaches!
... Also - In my searching I'd found mention that letsencrypt features were to be somehow integrated into proxmox a year or two ago - did that end up happening and I just missed it?
Thanks