Uploaded image for project: 'Erlang/OTP'
  1. Erlang/OTP
  2. ERL-1441

sni_hostname only available when sni_fun or sni_hosts defined

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 23.1
    • Fix Version/s: None
    • Component/s: ssl
    • Labels:
      None

      Description

      Local environment:

      Erlang/OTP 23.1.5 on Arch Linux

       

      Code to reproduce the behavior can be found here:

      https://github.com/lukebakken/otp-sni-hostname

       

      I was a bit surprised the other day when using ssl:connection_information to get sni_hostname that the information is only available when either the sni_fun or sni_hosts options are set. This is due to the code here:

      https://github.com/erlang/otp/blob/master/lib/ssl/src/ssl_gen_statem.erl#L1215-L1239

       

      There's no indication in the docs that those options are required to get the sni_hostname value used in a TLS connection: https://erlang.org/doc/man/ssl.html#connection_information-2

        Attachments

          Activity

            People

            Assignee:
            otp_team_ps Team PS
            Reporter:
            lukebakken Luke Bakken
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated: