Skip to content

OpenCTI SSL Configuration Issues #2307

@thev0yager

Description

@thev0yager

Prerequisites

  • [x ] I read the Deployment and Setup section of the OpenCTI documentation as well as the Troubleshooting page and didn't find anything relevant to my problem.
  • [x ] I went through old GitHub issues and couldn't find anything relevant
  • [x ] I googled the issue and didn't find anything relevant

Description

Environment

  1. OS (where OpenCTI server runs): Ubuntu 20.04
  2. OpenCTI version: OpenCTI 5.3.7
  3. OpenCTI client: Runs on Docker-Compose
  4. Other environment details: currently has the misp connector up and running

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. I am attempting to run opencti with a digicert cert.
  2. I have attached the docker-compose file and env file.
  3. The cert files have the permissions of 400 and the container is currently being ran as root.
  4. When running docker-compose up -d
  5. It returns the following error:

Persisted queries are enabled and are using an unbounded cache. Your server is vulnerable to denial of service attacks via memory exhaustion. Set cache: "bounded" or persistedQueries: false` in your ApolloServer constructor, or see https://go.apollo.dev/s/cache-backends for other alternatives.
Error: ENOENT: no such file or directory, open '/etc/ssl/certs/opencti-certs/MyServerCert.key'
at Object.openSync (node:fs:585:3)
at readFileSync (node:fs:453:35)
at createHttpServer (/opt/opencti/build/src/http/httpServer.js:34:17)
at /opt/opencti/build/src/http/httpServer.js:102:29
at new Promise ()
at listenServer (/opt/opencti/build/src/http/httpServer.js:100:10)
at Object.start (/opt/opencti/build/src/http/httpServer.js:130:22)
at startModules (/opt/opencti/build/src/modules.js:25:22)
at boot (/opt/opencti/build/src/boot.js:16:11)
at processTicksAndRejections (node:internal/process/task_queues:96:5)

  1. I am not sure what the error means here so any explanation would be awesome! Outside of that, do I need to have a nginx rev proxy file or can I do this with just the docker variables? If I need to do the rev proxy file can someone walk me through that?

Additional information

docker-compose.txt
env.txt
opencti-log.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedsolveduse to identify issue that has been solved (must be linked to the solving PR)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions