TheHive-Project / Cortex

Cortex: a Powerful Observable Analysis and Active Response Engine
https://thehive-project.org
GNU Affero General Public License v3.0
1.28k stars 218 forks source link

PKIX path buildin failed #411

Open rusqq opened 2 years ago

rusqq commented 2 years ago

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"

5. add a line (i really need it because thehive and cortex are placed on the same vm)
`http.port=9005
`
6. start cortex
7. go to http://ip_address:9005
8. you can see error as attached

### Possible Solutions

### Complementary information
![image](https://user-images.githubusercontent.com/96235374/170262839-4cd01993-ad29-49f8-8a9f-ff00104b64e5.png)