In my experience the upgrade path from 7 to 8 is a pain i the butt and is everything but working. At least the 3 times I have tried. Nuking and re-creating was the easier and faster way for me.
Upgraded elasticsearch 8 installations by default do everything but talk https. So you cannot connect https to a http port. That’s what the error message is about.