How to connect Logstash with Elastic Cloud Elasticsearch via https

I really don't understand that... I've done exactly like here:
https://www.elastic.co/guide/en/x-pack/5.6/logstash.html#ls-http-ssl
and it doesn't help...
[ERROR][logstash.pipeline] Error registering plugin?
I don't get it :disappointed_relieved: