TheHive-Project / TheHive-Project/Cortex
PKIX path buildin failed
Open
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
- install cortex
- edit /etc/cortex/application.conf file
- uncomment play.http.secret.key="CHANGEME"
- 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"
- add a line (i really need it because thehive and cortex are placed on the same vm)
http.port=9005 - start cortex
- go to http://ip_address:9005
- you can see error as attached
Possible Solutions
Complementary information

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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