Domain SSL Setup

Recent convert from Cpanel to Virtaulmin, and gotta say, don’t know why we didn’t do it earlier. Thanks to all for an amazing product.

Have a bit of an issue trying to manage through some SSL setup and not sure if it’s our lack of understanding or possibly incorrect functionality.

We’ve made changes under Server Settings --> Virtualmin Configuration --> SSL Setting to alter the location of the certificates. We modified all 5 paths for the various SSL files created (to ${HOME}/ssl/${DOM}.[extension]) and saved. We then disabled an SSL domain, and reenabled it, resulting in a successful new LetsEncrypt request. This is where it goes wrong.

  • First issue is, if the /ssl directory doesn’t exist, the whole process fails – should it not create the directory for us?
  • Once the directory was corrected manually, only 3 of the files (ca, combined, everything) were created with correct name and in the prescribed directory
  • The .key and .cert are still created in the root directory and are named ssl.cert and ssl.key

Is this a potential bug, or is there some underlying functionality we’re unaware of?

The final concern is, under that same module, we’ve enabled “Redirect HTTP to HTTPS by default?” and this appears to create a rewrite rule that we can see in the domain/subdomains/sub-servers (still learning the VM vernacular). This rewrite rule appears to be incorrect as it includes both SSL and non-SSL, meaning we get a redirect loop. We also cannot find the location of this redirect in the configurations, which would be nice to know where it is.

Any help would be much appreciated on this topic.

I stand corrected. This is the behaviour on existing domains if you make the switch. Brand new there is no issue.

Does this mean a manual run-through of domains to make this change will be required?