Getting no response from elasticsearch server

After installing the elasticsearch-oss and opendistroforelasticsearch from the docs, i tried to validate the install via

curl --insecure -u admin:admin https://localhost:9200

In return i am getting

curl: (52) Empty reply from server

PS: The service is running

I get this response usually when I use http instead of https.