SLL Certificate Setup Confusion

SYSTEM INFORMATION
OS type and version RHEL 7.9
Webmin version 2.104
Virtualmin version 7.8.2

Hi,

noob here, so apologies in advance for the probably stupid questions.

I’m confused about SSL setup in VirtualMin.

It seems there are two places that SSL certificates can to managed for a given site in Virtualmin

  1. Server Configuration > SSL Certificate
  2. Services > Configure SSL Website > SSL Options

…and that the options set in these two places can be mutually contradictory. Where there its a contradiction, which one “wins” and is actually used by the webserver?

I’d be really grateful if someone could throw some light on the the purposes of these two admin areas, and the correct process to be used to install or update an SSL certificate.

Also, I notice that some (but not all) of the virtual servers I’ve setup are set to use a shared certificate in Server Configuration > SSL Certificate. Since the certificate installed in the first site covers all sites, it makes sense for all sites to share the same certificate, but one of the sites doesn’t seem to be setup to do this, and I can’t find where to set this option.

Sorry again for the silly questions. SSL does in fact seem to be working as it should, at the browser end, but I want to clear up my confusion about the above, so I’m in a better position to troubleshoot potential future issues, and know the best way to renew the certificate next time I need to.

Incidentally, I can’t work out how to get the VirtualMin version in the Web/VirtualMin web UI. I will update the info at top if someone can tell me how to find the version number.

Thanks very much,

Alex

Welcome.
I’ll answer that one first.
At the top of the Dashboard you will see some icons. Click on the “clipboard” and it copies the system info to your clipboard to paste in.
Screenshot 2023-10-16 163047

As for SSL

  1. Server Configuration → SSL Certificate
    is the one I use as it is definitely per VS(domain)

I don’t even have

  1. Services > Configure SSL Website > SSL Options

Hi @Stegan thanks very much for getting back to me!

Re. VirtuallMin versions: Oddly, when I do that, I just get this in the clipboard

SYSTEM INFORMATION

(no actual information).

Re. Services > Configure SSL Website > SSL Options: That’s strange. SSL Options is an icon on the Services > Configure SSL Website page on my system, giving access to this panel:

Maybe I should just ignore this. It worries me that It seems to present different information to the other page.

That is very strange! Does your Dashboard look like this? (NB I have whiteout
the host name and IP - your memory etc would be different.

As for the Services sub menu this is what I have: (NB this is a Nginx webserver installation so no Apache)
Screenshot 2023-11-02 133306

If you wait someone else will pick up on this. There could be a setting I’m unfamiliar with

The website option is for a more granular option if needed. There are lots of things in the program that were probably added to solve some issue or need at some point.

You can use multiple certs. I know in the past a commercial cert could be quite narrow in scope and maybe only apply to a specific commerce site. The code here probably easily predates Let’s Encrypt. But for most of us, don’t worry as long as it works.

@ID10T Do you have a Services sub menu different to me?

Maybe this module isn’t available for nginx?

image

mine is different again
image
it really depends on how you configure virtualmin as to what shows up

Thanks. Any idea of what “configuration” triggers that? Is it just the fact I am using Nginx?

I’m using a different theme, so I don’t see what you see.

Info on WM and VW isn’t displayed below the Stats graphs.

This is what I get in Services:

Screenshot 2023-11-02 at 14.37.12

Apache server here.

This is what confuses me. I actually have different certificate files referenced in the two places. This is because it’s not possible to use a cert file that’s outside a site home directory in Server Configuration > SSL Certificate, so I had to copy the certificate from a central location in /etc/httpd into the home of one of the sites, in order to use it.

At the moment, the data in the files are the same, but in the past they were contradictory, and it seemed liked client browsers were seeing the certificate specified in the Configure SSL Website panel, rather than the certificate defined in Server Configuration > SSL Certificate when showing any of the hosted sites.

Could it be the case that the certificate setup in Configure SSL Website is only used when serving websites via https, and the SLL setup options in Server Configuration > SSL Certificate apply only to other services the server provides (ie Web/Virtualmin on port 10000)?

This would make sense, but isn’t flagged up in the Virtualmin UI, as far as I can tell.

Perhaps this in Server Configuration > SSL Certificate is relevant:

That seems wrong, however, as the site does have an SSL website enabled…

I don’t think so as I only know about the Server Configuration -> SSL Certificate and that provides the SSL on the per domain basis VS for webservers and for mail as requested under the Lets Encrypt tab. I have no idea what the Configure SSL Website panel does because I have never seen it or know how to get it.

On the theme issue. Is there a reason not to update it? and recheck configuration.

It could be that panel is disabled in the module config. Or maybe you’re using Nginx, and it only appears if you have Apache installed.

Config check fails, with an error re. public IP address and NAT. Maybe that’s. causing issues, and preventing updates showing up. When I check for module updates, nothing is listed, which seems wrong as it’s a while since I updated.

UPDATE: I’ve now managed to update Webmin, and I’m seeing the System Information panel at the top of the Dashboard, once again.

Have updated the WM/VM version info in the top post, as I can now see that information.

Same options re. SSL still available, though, so nothing has changed in that regard.

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