# Elastic hive configuration

**URL:** https://discuss.elastic.co/t/elastic-hive-configuration/352458
**Category:** Elasticsearch
**Tags:** elastic-stack-monitoring
**Created:** [February 3, 2024, 12:47pm UTC](https://discuss.elastic.co/t/elastic-hive-configuration/352458 "2024-02-03T12:47:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![John\_Papadopoulos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john_papadopoulos/32/131390_2.png) [@John\_Papadopoulos](https://discuss.elastic.co/u/John_Papadopoulos)
#### Post date: [February 3, 2024, 12:47pm UTC](https://discuss.elastic.co/t/elastic-hive-configuration/352458/1 "2024-02-03T12:47:37Z")

</div>

Hello. What i have is elastic running in a host windows server and i want to install hive from a WSL ubuntu which will be hosted in the windows server. My elastic config file only accepts https connections. SO i have setup the hive application.conf file like this

```auto
 # TheHive configuration - application.conf
#
#
# This is the default configuration file.
# This is prepared to run with all services locally:
# - Cassandra for the database
# - Elasticsearch for index engine
# - File storage is local in /opt/thp/thehive/files
#
# If this is not your setup, please refer to the documentation at:
# https://docs.strangebee.com/thehive/
#
#
# Secret key - used by Play Framework
# If TheHive is installed with DEB/RPM package, this is automatically generated
# If TheHive is not installed from DEB or RPM packages run the following
# command before starting thehive:
# cat > /etc/thehive/secret.conf << _EOF_
# play.http.secret.key="$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 64 |# head -n 1)"
# _EOF_
include "/etc/thehive/secret.conf"

# Database and index configuration
# By default, TheHive is configured to connect to local Cassandra 4.x and a
# local Elasticsearch services without authentication.
db.janusgraph {
  storage {
    backend = cql
    hostname = ["127.0.0.1"]
    # Cassandra authentication (if configured)
    # username = "thehive"
    # password = "password"
    cql {
      cluster-name = thp
      keyspace = thehive
    }
  }
  index.search {
    backend = elasticsearch
    hostname = ["192.168.0.230:9200"]
    index-name = thehive
    username = "user"
    password = "password"
    scheme = "https"
    trustStore {
       path = "/usr/lib/jvm/java-11-amazon-corretto/lib/security/cacerts"
       type = "JKS"
       password = "password"
    }

  }
}

# Attachment storage configuration
# By default, TheHive is configured to store files locally in the folder.
# The path can be updated and should belong to the user/group running thehive service. (by default: thehive:thehive)
storage {
  provider = localfs
  localfs.location = /opt/thp/thehive/files
}

# Define the maximum size for an attachment accepted by TheHive
play.http.parser.maxDiskBuffer = 1GB
# Define maximum size of http request (except attachment)
play.http.parser.maxMemoryBuffer = 10M

# Service configuration
application.baseUrl = "http://localhost:9000"
play.http.context = "/"

# Additional modules
#
# TheHive is strongly integrated with Cortex and MISP.
# Both modules are enabled by default. If not used, each one can be disabled by
# commenting the configuration line.
scalligraph.modules += org.thp.thehive.connector.cortex.CortexModule
scalligraph.modules += org.thp.thehive.connector.misp.MispModule

```

however elastic log gives me this

```auto
[2024-02-03T14:07:19,275][WARN][o.e.h.n.Netty4HttpServerTransport] [WIN-84I4PL7AU5G] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/192.168.0.230:9200, remoteAddress=/192.168.0.230:50230}
[2024-02-03T14:07:24,461][WARN][o.e.h.n.Netty4HttpServerTransport] [WIN-84I4PL7AU5G] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/192.168.0.230:9200, remoteAddress=/192.168.0.230:50198}
[2024-02-03T14:07:24,477][WARN][o.e.h.n.Netty4HttpServerTransport] [WIN-84I4PL7AU5G] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/192.168.0.230:9200, remoteAddress=/192.168.0.230:50206}

```

i made sure the http\_ca.crt file is entrusted to the trust store

what am i doing wrong?

---

<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: [March 2, 2024, 12:47pm UTC](https://discuss.elastic.co/t/elastic-hive-configuration/352458/2 "2024-03-02T12:47:41Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
