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...
Issue With SSL When Changing Domain Name
Submitted by izoox on Fri, 06/10/2011 - 13:24
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Fri, 06/10/2011 - 13:31 Comment #1
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?
Submitted by izoox on Fri, 06/10/2011 - 13:37 Comment #2
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
Submitted by izoox on Fri, 06/10/2011 - 13:38 Comment #3
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
Submitted by JamieCameron on Fri, 06/10/2011 - 15:16 Comment #4
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 :
virtualmin list-domains --domain tableworksusa.com --id-only
ssl_cert
andssl_key
lines, and change the path/home/tableworksusa.com.com
in them to/home/tableworksusa.com
The next Virtualmin release 3.87 will prevent this from happening..
Submitted by izoox on Fri, 06/10/2011 - 15:28 Comment #5
I think be a missing a step or something in that explanation, where is the file I am supposed to be editing?
Submitted by JamieCameron on Fri, 06/10/2011 - 15:35 Comment #6
Oops .. the steps should be :
virtualmin list-domains --domain tableworksusa.com --id-only
/etc/webmin/virtual-server/domains
whose name is that IDssl_cert
andssl_key
lines, and change the path/home/tableworksusa.com.com
in them to/home/tableworksusa.com
Submitted by izoox on Fri, 06/10/2011 - 15:36 Comment #7
Awesome, worked thanks!
Submitted by Issues on Sat, 06/25/2011 - 03:50 Comment #8
Automatically closed -- issue fixed for 2 weeks with no activity.