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

Unable to set mysql SSL certificates #2916

Closed
euqen opened this issue Jun 13, 2017 · 6 comments
Closed

Unable to set mysql SSL certificates #2916

euqen opened this issue Jun 13, 2017 · 6 comments
Labels
feature request Requests for new plugin and for new features to existing plugins
Milestone

Comments

@euqen
Copy link
Contributor

euqen commented Jun 13, 2017

I have mysql server running with SSL enabled, therefore I need to specify ssl certificate, CA and key. I haven't found any parameters in telegraf.conf to pass them inside. As I understand now it is not possible to specify them, right? Thanks.

@danielnelson
Copy link
Contributor

Looks like we don't have support for these settings in this plugin yet. However, I think if all you want is a basic setup you can add tls=true to the server string. The cert and key settings in other plugins are only for client authentication, and the CA setting is only needed if the remote server is not accepted by the system certificates.

@danielnelson danielnelson added the feature request Requests for new plugin and for new features to existing plugins label Jun 13, 2017
@euqen
Copy link
Contributor Author

euqen commented Jun 13, 2017

@danielnelson thanks for your answer.
When I use just tls=true it says tls: either ServerName or InsecureSkipVerify must be specified in the tls.Config. When I use skip-verify, server reject the connection because of authorization failure. I assume this happens because I've granted REQUIRE X509 for my user. Also I can't skip verifying SSL CA because of security requirements of my application.

And about system certificate, did you mean updating /usr/local/share/ca-certificates with my CA certificate?

@danielnelson
Copy link
Contributor

I think with REQUIRE X509 you would need the client cert options, the best you could do with the current settings is REQUIRE SSL.

It won't help here, but in general if you did to update your system ca certs for telegraf, I think it needs to be one of these: https://github.com/golang/go/blob/master/src/crypto/x509/root_linux.go

@euqen
Copy link
Contributor Author

euqen commented Jun 13, 2017

@danielnelson got it, thank you. Then I'm thinking about creating pull request with all changes what I need

@danielnelson
Copy link
Contributor

That would be great, I merged something similar today for graphite so maybe it will be helpful to look at #2602. This is the current style for these options.

@euqen
Copy link
Contributor Author

euqen commented Jun 13, 2017

great, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Requests for new plugin and for new features to existing plugins
Projects
None yet
Development

No branches or pull requests

2 participants