Project

General

Profile

Actions

Bug #6058

closed

rudder-metrics-reporting tries to use a ca file that is a directory

Added by Matthieu CERDA over 9 years ago. Updated about 9 years ago.

Status:
Released
Priority:
1
Category:
System integration
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

Currently, in the script, we use:

      curl = ["curl", RUDDER_URL, "--cacert", "/opt/rudder/share/certificates", "-f", "-L", "--post301", "--post302", "-d", "@"+file.name, "-H", "Content-Type: application/json;charset=utf-8"]

This is incorrect, as cacert expects a ca certificate and not a directory.

The right value is:

      curl = ["curl", RUDDER_URL, "--cacert", "/opt/rudder/share/certificates/ca-bundle.crt", "-f", "-L", "--post301", "--post302", "-d", "@"+file.name, "-H", "Content-Type: application/json;charset=utf-8"]

Actions

Also available in: Atom PDF