Cannot connect spark to local

is there a way? i watched the tutorial
then there is no option enable all certificate
and disable certificate hostname
this tutorial is from 2019
i want new is there a way to connect it?