Alias domain does not have its own certificate, browser SSL fail

SYSTEM INFORMATION
OS type and version Ubuntu Linux 20.04.5
Webmin version 2.013
Virtualmin version 7.5

I created an Alias server for my main Virtual Server, in the hope that domain.tld2 could serve the same content as domain.tld1

This seems to work to an extent, but I get an SSL warning in the browser:

This server could not prove that it is **domain.tld2** ; its security certificate is from **domain.tld1** . This may be caused by a misconfiguration or an attacker intercepting your connection.

Unfortunately SSL options for the Alias Server are nowhere to be found in Virtualmin.

How can I get the Alias Server to carry its own Let’s Encrypt certificate? I am pretty sure one was created when creating the Alias, but I cannot find it anywhere, and evidently it’s not being used.

To be noted that, if I go to Webmin > Apache Webserver the Alias server is not listed.

When you request a certificate (in Virtualmin, don’t go messing around in Webmin for this!), you can choose to add other names to it, as long as they are served from the same path (as an alias would be), LE can validate it.

1 Like

Thank you! that was it!

If anyone has the same issue, the problem was that in the SSL settings > Let’s Encrypt certificate page I had selected Domain names listed here, instead of Domains associated with this server, so the Alias server was not added automatically.

My top level has the alais domain names listed in the Lets Encrypt section.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.