Webmin fails to start if user rename virtualhost with already created SSL certificates and delete it after

When user rename virtualhost with already created SSL certificates to other name, and then - delete it, webmin fails to starts with error:

/etc/webmin/start
Starting Webmin server in /usr/share/webmin
Failed to open SSL key /home/old-virtual-host-name.org/ssl.key at /usr/share/webmin/miniserv.pl line 4420.

This happens, because Virtualmin don't delete old path of ssl key from file /etc/webmin/miniserv.conf.

ipkey_old-virtual-host-name.org,*.old-virtual-host-name.org=/home/old-virtual-host-name.org/ssl.key
ipcert_old-virtual-host-name.org,*.old-virtual-host-name.org=/home/old-virtual-host-name.org/ssl.cert

Manually deleting lines from this file help solve this problem.

Status: 
Active

Comments

Ilia's picture
Submitted by Ilia on Sat, 05/30/2020 - 05:54

Hi,

Thank you for the heads up. However, I have really tired and couldn't reproduce this bug on latest Webmin 1.942 and Virtualmin 6.09-3.