Elasticsearch error when attempting to rebuild index after first install

You provided both relevant information yourself.
Together with our documentation you will see that you’re trying to speak https with a http service.

https://docs.zammad.org/en/latest/install/elasticsearch.html#step-3-connect-zammad