Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Telegraf CA file creation fix. Issue #10218 #756

Merged
merged 1 commit into from Feb 7, 2020

Conversation

vktg
Copy link
Contributor

@vktg vktg commented Jan 29, 2020

Redmine Issue: https://redmine.pfsense.org/issues/10218
Ready for review

I'm running the 2.4.5-RC with Telegraf package 0.9_1 and found that Telegraf wouldn't start when I have more then one CA in pfSense.
After checking the created telegraf.ca I found that there is a missing newline after the first certificate, so it looked like this:

-----END CERTIFICATE----------BEGIN CERTIFICATE-----

which is invalid.

The fix is quite simple, look at line 67 in telegraf.inc and change it from
$ca_pem .= base64_decode($ca['crt']);
to
$ca_pem .= base64_decode($ca['crt'])."\n";

actual fix by Grimson Gretzleburg

@netgate-git-updates netgate-git-updates merged commit 36ea2b7 into pfsense:devel Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants