TheHive-Project / TheHive-Project/Cortex

PKIX path buildin failed

Open
#411 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
1.6k
Forks
264
PR merge metrics
No merged PRs in 30d

Description

Request Type

Bug

Work Environment
Question Answer
OS version (server) Ubuntu
OS version (client) 20.04 LTS
Cortex version / git hash 3.1.4-1
Package Type sudo apt install cortex
Browser type & version If applicable
Problem Description

Error: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Steps to Reproduce
  1. install cortex
  2. edit /etc/cortex/application.conf file
  3. uncomment play.http.secret.key="CHANGEME"
  4. edit info about elasticsearch:
search {
  # Name of the index
  index = cortex
  # ElasticSearch instance address.
  # For cluster, join address:port with ',': "http://ip1:9200,ip2:9200,ip3:9200"
  uri = "https://ip_address:9200"


  ## Authentication configuration
  user = "elastic"
  password = "pass"

  1. add a line (i really need it because thehive and cortex are placed on the same vm)
    http.port=9005
  2. start cortex
  3. go to http://ip_address:9005
  4. you can see error as attached
Possible Solutions
Complementary information

image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with /etc/cortex/application.conf and reproduce startup using the configured HTTPS Elasticsearch URI. Trace the PKIX SSLHandshakeException shown during startup; done means Cortex starts successfully and the web interface is reachable at http://ip_address:9005.

Written by the indexing model from the issue text.

Assessment

Tech stack
elasticsearch, java, scala
Domain
backend, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.