Skip to content

Conversation

@rmorandell-pgum
Copy link

Description

If Splunk is provided internally as a test system with a self-signed certificate, the option “verify_certificate = 0” is currently not sufficient. Although setting log_curl_commands = 1 causes curl to be output correctly with “-k” and this curl also works correctly, the stream connector fails.

The reason is that only :setopt(curl.OPT_SSL_VERIFYPEER, self.sc_params.params.verify_certificate) is set and not VERIFYHOST.

The simple fix is to set VERIFYHOST, too.

#310

Type of change

  • Patch fixing an issue (non-breaking change)
  • New functionality (non-breaking change)
  • Breaking change (patch or feature) that might cause side effects breaking part of the Software

Target serie

  • 23.10.x
  • 24.04.x
  • 24.10.x
  • 25.10.x
  • master

How this pull request can be tested ?

U don't need an splunk enviroment. U just need a simple server.js with a self signed certificate that logs the post requests to disk.

server.js.txt

Checklist

Community contributors & Centreon team

  • I have followed the coding style guidelines provided by Centreon
  • I have commented my code, especially new classes, functions or any legacy code modified. (docblock)
  • I have commented my code, especially hard-to-understand areas of the PR.
  • I have rebased my development branch on the base branch (master, maintenance).

@rmorandell-pgum rmorandell-pgum requested a review from a team as a code owner December 1, 2025 09:43
@tanguyvda
Copy link
Contributor

hello @rmorandell-pgum

thanks for your contribution, I am creating the internal ticket in order to start the release workflow.

Have a nice day,
Regards

@tanguyvda
Copy link
Contributor

for internal reference

#CTOR-2057

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants