I just realized that earlier I was looking at Elasticsearch 7.8 version and not Filebeat.
Here is the link for Filebeat latest v7.8
https://www.elastic.co/guide/en/beats/filebeat/current/configuration-ssl.html#_verification_mode
And this one also says only "none" and "full" are the 2 options.
verification_mode
This option controls whether the client verifies server certificates and host names. Valid values are `none` and `full` . If `verification_mode` is set to `none` , all server host names and certificates are accepted. In this mode, TLS-based connections are susceptible to man-in-the-middle attacks. Use this option for testing only.
The default is `full` .
Does anyone know how we can bypass the hostname verification then even with the latest version? Thanks