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

hostname check failing with wildcard

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not a Bug
    • Affects Version/s: 23
    • Fix Version/s: None
    • Component/s: ssl
    • Labels:
      None

      Description

      validation of a wildcard certificate is failing on OTP 23 with the error CLIENT ALERT: Fatal - Handshake Failure, - {bad_cert,hostname_check_failed}. It is working correctly on OTP 22.1

      This can be reproduced by the following code:

      70> ssl:connect("contacts.google.com", 443, [{cacertfile, certifi:cacertfile()}, {server_name_indication, "contacts.google.com"},  {reuse_sessions, false}, {verify, verify_peer}, {depth, 99}]).
      2020-05-20T10:10:03.257852+02:00 notice: TLS client: In state wait_cert_cr at ssl_handshake.erl:1840 generated CLIENT ALERT: Fatal - Handshake Failure, - {bad_cert,hostname_check_failed}
      

       

       

        Attachments

          Activity

            People

            Assignee:
            otp_team_ps Team PS
            Reporter:
            benoitc Benoit Chesneau
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: