|
|
|
|
|
by quesera
3102 days ago
|
|
RFC6066, correct. The "as understood by the client" is very important, apparently. Furthermore, the name does not need to be in DNS. There is no single source of true DNS anyway (though of course the ~whole world uses the same root servers). Try it. I just set up a remote server for "snitest", added the IP address to /etc/hosts only, generated a cert for that name only, and got the correct cert via SNI in a local browser. The same process (minus /etc/hosts modification) also worked for a bare (textual representation of an) IP address. |
|
That is not "furthermore", that is what "as understood by the client" means.
> Try it. I just set up a remote server for "snitest", added the IP address to /etc/hosts only, generated a cert for that name only, and got the correct cert via SNI in a local browser.
That is a fully qualified DNS hostname, by definition. You told both your server that it was a DNS FQDN it should serve and your client that it was a DNS FQDN that it should request, and so they obviously were matched exactly as required by the standard. Whether DNS is involved in the resolution process is irrelevant, especially so given that the standard nowhere specifies the DNS root to use.
> The same process (minus /etc/hosts modification) also worked for a bare (textual representation of an) IP address.
What was the name type in the certificate? That sounds like a bug in the client, and possibly in the server as well.