Built-in certificate not matching domain after hostname change

Liniik

New Member
Sep 16, 2025
1
0
1
I installed PVE for the first time not knowing other context and consequences of IP address and hostname setup. So after installation I changed IP assigned by DHCP to a static one, which went okay. Then I wanted to change original hostname of pve1.local to pve1.lan. I followed this guide: https://pve.proxmox.com/wiki/Renaming_a_PVE_node.
Contents of /etc/hosts is:
Code:
127.0.0.1 localhost.localdomain localhost
192.168.0.8 pve1.lan pve1

# The following lines are desirable for IPv6 capable hosts

::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

/etc/hostname contains pve1, /etc/postfix/main.cf has this line myhostname=pve1.lan. I then ran pvecm updatecerts -f and rebooted the machine. Certificate still has the old domain name:
1758046240168.png
Thanks to this post I tried this guide https://pve.proxmox.com/wiki/HTTPS_Certificate_Configuration_(Version_4.x,_5.0_and_5.1) but to no avail.
I then went through a lot of searching and found these posts but nothing in them helped me with the problem, the result is always as in the cert screenshot (.local instead of .lan):

I also found and checked commands hostname, hostname --all-fqdn and dnsdomainname and results look correct:
1758046510974.png

As a last resort I removed /var/lib/rrdcached/db/pve2-{node,storage}/ and /etc/pve/nodes/pve1 but again, no change in the cert domain name (and of cource force update the certs and reboot).

Please, does anyone have any idea what's going on? I could just reinstall it but in the future I can transition to other cert provider and at that time I'll have VMs installed and running and won't have the option of reinstall so I wanna know.
 
Last edited: