elasticsearchr Empty reply from server code example
Example: curl: (52) Empty reply from server elasticsearch
The problem is quite clear: we try to establish a secure connection without specifying the Elastic username and a key. For this there are two simple solutions, namely firstly bypassing the certificate locally (not recommended, but working):
curl -u elastic:<YOUR-PASSWORD> https://localhost:9200 -k