SNI issue with InetAddress.getLocalHost()

XMLWordPrintable

      When application creates an SSLSocket with InetAddress.getLocalHost(), for example;
         SSLSocket sslSocket = (SSLSocket)sslSocketFactory.createSocket(
                         InetAddress.getLocalHost().getHostName(), serverPort);

      On some platform, the hostname used may look like "hostname.local" or "apple.local". The server name indication implementation is not able to identify that the hostname is not a valid domain name yet. So the SNI extension may be used, and the server may not be able to accept the SNI extension, and result in handshaking failure.

            Assignee:
            Xuelei Fan
            Reporter:
            Xuelei Fan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: