# Elastic search not getting executed with Https

**URL:** <https://discuss.elastic.co/t/elastic-search-not-getting-executed-with-https/56890>\
**Category:** Elasticsearch\
**Created:** [August 1, 2016, 12:50pm UTC](https://discuss.elastic.co/t/elastic-search-not-getting-executed-with-https/56890 "2016-08-01T12:50:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivc](https://avatars.discourse-cdn.com/v4/letter/v/ce7236/32.png) [@vivc](https://discuss.elastic.co/u/vivc)\
**Post date:** [August 1, 2016, 12:50pm UTC](https://discuss.elastic.co/t/elastic-search-not-getting-executed-with-https/56890/1 "2016-08-01T12:50:16Z")

</div>

I've generated the certiificate using the command

keytool -genkey -alias tomcat -keyalg RSA -keystore D:\keyPath\key and added the same in the server.xml in apache/conf.

```
     <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" SSLEnabled="true"
           maxThreads="150" scheme="https" secure="true"
           clientAuth="false" sslProtocol="TLS" sslEnabledProtocols="TLSv1,TLSv1.1,TLSv1.2"
           keystorePass="logmgmt@123"
           keystoreFile="D:/Key/logmgmt"
           keyAlias="tomcat" />

```

Now the https request is loading the web page but the elasticsearch queries not getting executed. Could you please tell me what configuration change to be made in the elastic search to get the https request working.

Getting the following error .

Failed to load resource: net::ERR\_CONNECTION\_CLOSED [https://localhost:9200/?hello=elasticsearch](https://localhost:9200/?hello=elasticsearch)  
elasticsearch.js:53072 TRACE: 2016-08-01T12:06:25Z  
-\> HEAD [https://localhost:9200/?hello=elasticsearch](https://localhost:9200/?hello=elasticsearch)

\<- 0

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 10:31pm UTC](https://discuss.elastic.co/t/elastic-search-not-getting-executed-with-https/56890/2 "2017-07-05T22:31:13Z")

</div>


