Docker tls problem

I have tls that root ca sign by me,

With normal http input everything work fine:

input {
  http {
    port => 3389
    # ssl => true
    # ssl_certificate_authorities => ["/opt/certs/ca.pem"]
    # ssl_certificate => "/opt/certs/server.pem"
    # ssl_key => "/opt/certs/server-key.pem"
    # ssl_verify_mode => "force_peer"
  }
}

output {
  elasticsearch { hosts => ["elasticsearch:9200"] }
}

After comment out the cert part logstash it's constantly restart with these error:

See error on pastebin: https://paste.ubuntu.com/p/DPsKSQJK6d/