| > 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). 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. |
A non-DNS hostname can be treated as fully-qualified since there's no organizational structure to qualify it in.
> What was the name type in the certificate?
The CN? Is the IP address, as specified at cert generation.
> That sounds like a bug in the client, and possibly in the server as well.
Perhaps. I'm not a standards adjudicator.
Nevertheless, it works in the web we have. Tested in nginx, OpenSSL, curl, Firefox.