Skip to content

Failed to start child: {AppWeb.Endpoint, :https} {:options, :incompatible, [:secure_renegotiate, {:versions, [:"tlsv1.3"]}]} #6557

@bgrvn

Description

@bgrvn

Environment

  • Elixir version (elixir -v): Elixir 1.19.4 (compiled with Erlang/OTP 28)
  • Phoenix version (mix deps): 1.8.3
  • Operating system: Debian (docker image hexpm/elixir:1.19.4-erlang-28.2-debian-bullseye-20251117-slim

Actual behavior

Hi. I am trying to use https options for fresh phoenix install with certificates generated by mix phx.gen.cert and config:

config :app, AppWeb.Endpoint,
  http: [ip: {0, 0, 0, 0}, port: 80],
  https: [
    port: 443,
    cipher_suite: :strong,
    otp_app: :app,
    keyfile: "priv/cert/selfsigned_key.pem",
    certfile: "priv/cert/selfsigned.pem"
  ],

And trying to start the server with mix phx.server I am getting this error:

app-1  | Compiling 15 files (.ex)
app-1  | Generated app app
app-1  | [info] Running AppWeb.Endpoint with Bandit 1.8.0 at 0.0.0.0:80 (http)
app-1  | [notice] Application app exited: App.Application.start(:normal, []) returned an error: shutdown: failed to start child: AppWeb.Endpoint
app-1  |     ** (EXIT) shutdown: failed to start child: {AppWeb.Endpoint, :https}
app-1  |         ** (EXIT) shutdown: failed to start child: :listener
app-1  |             ** (EXIT) {:options, :incompatible, [:secure_renegotiate, {:versions, [:"tlsv1.3"]}]}
app-1  | [notice] Application tailwind exited: :stopped
app-1  | [notice] Application esbuild exited: :stopped
app-1  | [notice] Application phoenix_live_reload exited: :stopped
app-1  | [notice] Application file_system exited: :stopped
app-1  | [notice] Application dns_cluster exited: :stopped
app-1  | [notice] Application gettext exited: :stopped
app-1  | [notice] Application expo exited: :stopped
app-1  | [notice] Application telemetry_poller exited: :stopped
app-1  | [notice] Application swoosh exited: :stopped
app-1  | [notice] Application req exited: :stopped
app-1  | [notice] Application finch exited: :stopped
app-1  | [notice] Application nimble_options exited: :stopped
app-1  | [notice] Application nimble_pool exited: :stopped
app-1  | [notice] Application mint exited: :stopped
app-1  | [notice] Application idna exited: :stopped
app-1  | [notice] Application unicode_util_compat exited: :stopped
app-1  | [notice] Application xmerl exited: :stopped
app-1  | [notice] Application phoenix_live_dashboard exited: :stopped
app-1  | [notice] Application telemetry_metrics exited: :stopped
app-1  | [notice] Application phoenix_live_view exited: :stopped
app-1  | [notice] Application ecto_sql exited: :stopped
app-1  | [notice] Application phoenix_ecto exited: :stopped
app-1  | [notice] Application postgrex exited: :stopped
app-1  | [notice] Application db_connection exited: :stopped
app-1  | [notice] Application ecto exited: :stopped
app-1  | [notice] Application phoenix exited: :stopped
app-1  | [notice] Application jason exited: :stopped
app-1  | [notice] Application decimal exited: :stopped
app-1  | [notice] Application websock_adapter exited: :stopped
app-1  | [notice] Application bandit exited: :stopped
app-1  | [notice] Application hpax exited: :stopped
app-1  | [notice] Application thousand_island exited: :stopped
app-1  | [notice] Application websock exited: :stopped
app-1  | [notice] Application phoenix_template exited: :stopped
app-1  | [notice] Application phoenix_html exited: :stopped
app-1  | [notice] Application phoenix_pubsub exited: :stopped
app-1  | [notice] Application plug exited: :stopped
app-1  | [notice] Application telemetry exited: :stopped
app-1  | [notice] Application plug_crypto exited: :stopped
app-1  | [notice] Application mime exited: :stopped
app-1  | [notice] Application eex exited: :stopped
app-1  | [notice] Application runtime_tools exited: :stopped
app-1  | ** (Mix) Could not start application app: App.Application.start(:normal, []) returned an error: shutdown: failed to start child: AppWeb.Endpoint
app-1  |     ** (EXIT) shutdown: failed to start child: {AppWeb.Endpoint, :https}
app-1  |         ** (EXIT) shutdown: failed to start child: :listener
app-1  |             ** (EXIT) {:options, :incompatible, [:secure_renegotiate, {:versions, [:"tlsv1.3"]}]}
app-1 exited with code 1

Could you please help to understand the issue?

Thank you!

Expected behavior

Server is up and running for http and https.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions