Issue With SSL When Changing Domain Name

I have a site with an SSL installed. It was also restored from a backup on another box. Both with the latest virtualmin, both with Centos. When I go to change the domain name, I am actually leaving the domain name the same, but changing the user, and then letting virtualmin automatically decide the other two options for home directory and administrative user, it goes through all of it's things, but the ssl now says self signed rather than what it actually is. If I try and reinstall the ssl, it give me an error about the ssl.cert webmintmp file not existing... any ideas? I would like to change the user on this vhost so it matches the rest on this box. Maybe I should note that when I change the domain name back... the ssl appears correctly...

Status: 
Closed (fixed)

Comments

So on the rename form, did you leave the domain un-changed? If so, the SSL cert shouldn't have been adjusted ..

Also, what is the exact error message you are seeing when you try to install a cert now?

I attached a screenshot of the form as I entered it. The ssl does still work after the rename though, even though virtualmin says it's Self Signed.

The error is:

Failed to install certificate : Failed to open /home/tableworksusa.com.com/ssl.cert.webmintmp.17452 : No such file or directory

I attached a screenshot of the form as I entered it. The ssl does still work after the rename though, even though virtualmin says it's Self Signed.

The error is:

Failed to install certificate : Failed to open /home/tableworksusa.com.com/ssl.cert.webmintmp.17452 : No such file or directory

Ok, I see the bug that causes this now - the issue is that Virtualmin's internal database was updated with the wrong path to your SSL cert and key files.

The fix is as follows :

  1. SSH into your system as root
  2. Get the domain's unique ID with the command virtualmin list-domains --domain tableworksusa.com --id-only
  3. Find the ssl_cert and ssl_key lines, and change the path /home/tableworksusa.com.com in them to /home/tableworksusa.com
  4. Save the file.

The next Virtualmin release 3.87 will prevent this from happening..

I think be a missing a step or something in that explanation, where is the file I am supposed to be editing?

Oops .. the steps should be :

  1. SSH into your system as root
  2. Get the domain's unique ID with the command virtualmin list-domains --domain tableworksusa.com --id-only
  3. Edit the file under /etc/webmin/virtual-server/domains whose name is that ID
  4. Find the ssl_cert and ssl_key lines, and change the path /home/tableworksusa.com.com in them to /home/tableworksusa.com
  5. Save the file.

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