Problem with logstash output to elastic via ssl

I do these settings and after that I have next error:

:error=>"Host name '127.0.0.1' does not match the certificate subject provided by the peer (CN=N4xpr8W)"