-
-
Notifications
You must be signed in to change notification settings - Fork 118
Features Association bug with associating Website SSL with a virtual server #1005
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
As an additional data point, I was able to associate the Apache website (even though it didn't come in during the import, which I would have expected to happen), so I think Virtualmin is looking in the right places. It just doesn't like this SSL VirtualHost. |
Hmm, that's an unusual error since it should only happen if there is no How did you do the association exactly? |
On the Associate Features page I checked the box for The Apache website association by itself worked, but SSL won't work at all with validation enabled. And, it definitely has an SSLCertificateFile. I'll send you the whole |
Ok I'll check out the config. Are you associating just the SSL feature, or the regular Apache website at the same time? |
Associating both at the same time did not work (SSL failed validation), so I associated Apache website by itself, successfully. Now I'm just trying to associate Apache SSL website and failing validation. |
Oh, actually, turns out Apache website also failed to associate. I guess Virtualmin doesn't actually know the domain name, somehow? I'm baffled by what it's doing. |
Agh. The VirtualHost is pointing to |
So, somehow, Virtualmin decided that "default" (not a VirtualHost) was the right thing to import for this domain. I don't know how to make sense of that. The httpd.conf was wrong ( |
Fixing httpd.conf, disassociating both Apache/SSL website features, and then trying to re-associate gets a new error:
Seems like a thing that could be fixed by enabling/disabling, once associated. I'll try it without validation again. |
Nope, it's still associating with...nothing? Not a VirtualHost, not sure what it's doing. Back to empty Show directives page. |
In my tests I can also see that the validation fails false positively, for example:
I think we’re dealing with two separate issues here. One is a Virtualmin bug where validation doesn’t work correctly in some cases—though, to be clear, SSL association worked fine for me. The other issue in your case is actually broken Apache config, which would be useful to share here. |
Uh oh!
There was an error while loading. Please reload this page.
When trying to associate a domain with an existing VirtualHost in the Apache configuration, I get the following error:
Which isn't true. The VirtualHost for the name on port 443 has
SSLCertificateFile
,SSLCertificateKeyFile
, andSSLCertificateChainFile
defined, and they point to files that exist (they are links from the user's home to files in the Let's Encrypt dir in/etc/letsencrypt/live/domainname
).So, either the error is misleading or the check isn't working correctly.
As far as I know, this VirtualHost was created by Virtualmin, so Virtualmin really ought to be able to recognize it as a valid VirtualHost to be imported/associated.
The text was updated successfully, but these errors were encountered: