How to Configure SSL#
This topic provides step-by-step instructions for configuring Secure Sockets Layer (SSL) in TheHive for AD, LDAP, and OAuth 2.0 authentication providers.
This guide provides configuration instructions for different environments:
DEB package#
-
Edit the TheHive environment configuration:
Open the
/etc/default/thehive
file and uncomment theJAVA_OPTS
variable.Set the path to your Java KeyStore (JKS) file:
JAVA_OPTS="-Djavax.net.ssl.trustStore=</path/to/your-jks-file>.jks -Djavax.net.ssl.trustStorePassword=<your-keystore-password>"
-
Restart TheHive service:
sudo systemctl restart thehive
Docker environment#
-
Mount the Java KeyStore (JKS) inside the container:
Make sure your KeyStore is accessible from within the Docker container by mounting it as a volume:
docker run -d \ -e "JAVA_OPTS=-Djavax.net.ssl.trustStore=/container/path/<your-jks-file>.jks -Djavax.net.ssl.trustStorePassword=<your-keystore-password>" \ -v </host/path/to/jks>:</container/path> \ your-thehive-image
-
Restart TheHive Docker container:
docker restart <your-thehive-container>