-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Configuration for location of certs of postgres in ssl with CA mode #3817
Comments
I'm looking for info on this too |
I believe these options must be set via the connection string via the Telegraf's home directory may be different depending on the package you are using. I don't recommend relying on it, and would instead use absolute paths to these files. It should look something like this:
Make sure you have the correct permissions on these files, on Linux the I haven't tested this myself though, could you let me know if that does the trick so we can add it to the plugin documentation? |
Thanks @danielnelson I gave it a shot but without any luck. What's odd is that I can connect with the same set of certificates that I'm using in telegraf with the standard postgres client. In other words this works:
I'm using the exact same string in telegraf:
But the telegraf connections result in this on the postgres side:
Permissions on the files reachable (and owned) by the telegraf user:
|
Is it possible that the telegraf input isn't parsing the I get the same error with the psql client if I leave it out:
|
It looks like we need to update pgx to 3.2.0 for this support jackc/pgx@8078930 I can open a PR with the updated version for testing |
Hi Team
I am trying to configure my postgres in ssl mode with client authentication
But In the telegraf configuration I am unable to see any setting which specify the location of the client cert key
Does the plugin support postgres in ssl mode with client authentication
The text was updated successfully, but these errors were encountered: