Errors connecting to localhost after generating a certificate with mix phx.gen.cert

while setting up my development enviroment I encountered an issue that I just haven’t been able to resolve

after running mix phx.gen.cert localhost 127.0.0.1 ::1 and starting the server with mix start I encountered that when I connect to https://localhost:3000 I recieve an SSL_ERROR_RX_RECORD_TOO_LONG error from the browser, the server doesn’t log anything. Any tips or solutions for troubleshooting this?

Welcome to Elixir Forum @lunipaws , I hope you will get the help you need.

Did you update your config with the the correct endpoint ? when running mix phx.gen.cert you should see something like please update your HTTPS Endpoint configuration in config/dev.exs ...

You also said mix start, did you mean mix phx.server ?

Any additional info would help debug it

mix start was an alias to mix phx.server, I looked a bit more into it and it ended up being an issue caused by how the network of the place I work at was setup, in short we have several networks and I was connected to one that had a lot of restrictions when it comes to accesing internal hosts. So it ended up not being an elixir related problem, sorry if I occupied your time !

Don’t be sorry :slight_smile: happy that you could solve it.
Thanks for explaining your solution, it is very useful to all for future reference.