Elastic agent input gives bad_certificate in Logstash

Hi,

following step-by-step the following guide

We can't connect the elastic agent to Logstash because of a bad_certificate error.

We have basic License but we set the Logstash output as default.

Please let me know what additional information do you need.

Thanks!