Skip to content

[Bug] TLS 1.3 issue with HAProxy #9156

@feld

Description

@feld

Contact Details

No response

Version

5.8.0

Description

I am not sure if this is related to #8793 at all, but with a WolfSSL-flavored HAProxy I get this TLS error when sending requests from Erlang/Elixir:

[warning] Description: ~c"Failed to assert middlebox server message"
     Reason: [missing: {:change_cipher_spec, 1}]

[notice] TLS :client: In state :hello_middlebox_assert at ssl_gen_statem.erl:803 generated CLIENT ALERT: Fatal - Unexpected Message
 - {:unexpected_msg,
 {:internal,
  {:encrypted_extensions,
   %{
     elliptic_curves: {:supported_groups,
      [:secp521r1, :secp384r1, :secp256r1, :x25519, :ffdhe2048]}
   }}}}
{:error,
 {:tls_alert,
  {:unexpected_message,
   ~c"TLS client: In state hello_middlebox_assert at ssl_gen_statem.erl:803 generated CLIENT ALERT: Fatal - Unexpected Message\n {unexpected_msg,\n     {internal,\n         {encrypted_extensions,\n             \#{elliptic_curves =>\n                   {supported_groups,\n                       [secp521r1,secp384r1,secp256r1,x25519,ffdhe2048]}}}}}"}}}

This issue is documented upstream in Erlang as a TLS implementation bug on the server side: erlang/otp#8470

I have not tried building against WolfSSL 5.8.2 yet, but if it is believed the issue may be fixed I can do a custom build to validate as well as ensure those changes get pushed upstream in FreeBSD which is has an HAProxy variant built against WolfSSL

Reproduction steps

No response

Relevant log output

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions