webmin doesn't restart if ssl=1. Fails to open ssl. key of a deleted subserver

OS: Debian 9

Deleted one subserver, I did not pay too much care that itsaid that subserver was sharing a ssl key with another subdomain. Looks like the subserver wa deleted - cannot see it anywhere. But the error message, when I restart webmin (/etc/init.d/webmin restart) states that "Failed to open SSL key /home/DOMAIN/domains/subserver.domain.com/ssl.key at /usr/share/webmin/miniserv.pl line 4410"

I am able to restart webmin only if SSL disabled.

Status: 
Closed (fixed)

Comments

As a quick work-around, you can edit /etc/webmin/miniserv.conf and remove the ipkey_ line that refers to the problem cert.

However, it's clearly a bug if this can happen in the first place. Did this sub-server use an SSL certificate that was also valid for it's parent domain?

Hi. Thanks for your fast reply. Solved and now wrks properly. But had to do a few other changes (more below):

The ssl was just for the sub-server but in a certain moment the certificate became shared... To try to replicate: Have a sub-server with name eg. Mysubserver, Rename it to ppMysubserver Create a subdomain named Mysubserver Delete ppMysubserver (I did this for couple of subservers and it hang up in one)

More info on solving it (for you to have a better idea of the bug....) As per your suggestion, I deleted this line, ipkey_ppDELETEDSUBSERVER.site.com,*.ppDELETEDSUBSERVER..site.com=/.../ssl.key I noticed that there were also another couple of subdomains ip_keys, ipcrt and ipextracas that remained with "deleted subserver folder links" - so, I corrected them. There were also a couple of new subdomains lacking the ipextracas link. also corrected it.

Thanks

Ok, this bug will be fixed in the next Virtualmin release.

Status: Fixed ยป Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.