Security Elasticsearch version 8.12

Hi community. I'm trying to configure the elasticsearch security to have a login page before accessing the resource but I can't get it. After deploying version 8, I go to the elasticsearch bin file to create a password but it gives me a TLS error. Just a moment, I'll send you the error.

error: failed to establish SSL connection to elasticsearch at https://192.168.1.102:9200

Was the installation via package compilation or directly from the repository via apt-get? I always like to install binaries via apt-get. One important thing is that in the Elastic 8 version, it comes with default security settings and generates a password after the installation is complete. You should write it down and use it to integrate with Kibana.