IPv6-only virtual server (here: SSL)?

I have only one IPv4 address allocated for the host in question (scarceness is ever-growing), on eth0, but an arbitrary number of IPv6 addresses available, on eth1.

Now, if I want to create a virtual server with SSL website, and to overcome the "only one SSL per address" issue, I want to give it only an IPv6 address, no IPv4... How would I go about that? Am I assuming right that Virtualmin does not support that yet?

Status: 
Closed (fixed)

Comments

No, Virtualmin doesn't support this yet. And even if it did, your ssl sites wouldnt be accessible via IPv4, at least not with valid certs. So unless you are willing to switch to accepting v6 only clients, that isnt a very useful configuration in my opinion...

IPv6-only SSL sites is exactly what I'm trying to experiment with in this case, to start working towards the future. :)

After all, sooner or later, for these use cases, IPv4 with fade out. Probably sooner than later -- current example being my hoster who just now has started charging monthly fees for /27 IPv4 subnets. I.e. it'll become less and less affordable to assign IPs per SSL site.

Come to think of it, Virtualmin will let you create what is effectively an IPv6 only SSL site - just enable a v6 address and the SSL feature, but use a shared v4 address. You will get a warning about a certificate clash on the v4 address, but this can be skipped. As far as I know, the right cert will be used for clients connecting to the v6 address..

Mmmh, okay, I will check that out! Indeed I got that warning, but could skip over it. Thanks for the hint.

Just one possible issue with this: Won't the conflicting cert cause the already existing, and possibly intended, v4 SSL site to become borked?

I'll test it.

As long as the intended IPv4 SSL site was created first, you will be OK..

Ah, this means when VM notices that, when I turn on "SSL website", a cert already exists in another vserver for the shared IP in question, it will skip the cert generation and instruct Apache to use the existing one, with the effect that it does not match the hostname and stuff?

Mmh, I just recall about a method to have Apache use different certs on the same IP... some HTTPS protocol extension that passes in the hostname of the requested web site during the SSL setup. "SNI" it was called... "Server Name Indication".

I think an Apache module was needed for that. Virtualmin does not by chance support that? :) Or maybe you have plans to include it in the future. Especially with diminishing IPv4 space it will probably get more attention.

Not quite - if you create an SSL site on the same IP as an existing SSL site, the cert will only be re-used if it is suitable for both domain names (for example a wildcard cert). Otherwise a new separate cert will be generated.

SNI would solve this issue, but unfortunately not all browsers support it yet..

Okay, yes I see that now.

I just reported another bug... which caused me to look at the settings for the same Apache virtual server, when trying to compare two separate test servers, which quite confused me when evaluating this thing here. ;)

This one here can be considered closed for now.