-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Client SSL certificate #100
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
Comments
This is intended. You would only need it if you want to authenticate the client using the certificate. The driver currently supports no auth plugins and this has currently a low priority. If you want to work on it, we would be happy to accept you pull request 😉 |
Client certificates are an [optional] part of TLS, but required in my case. The problem is the TLS config object is not exposed because of how database/sql is defined. I'd be happy to send a pull request. But do you have any ideas on how I might be able to accomplish this? It seems like database/sql does a great job of hiding the underlying interfaces. |
OK, sorry. We didn't notice this case when implementing TLS support. The only sensible way which comes to my mind right now is to build a map of named certificates like we do here for Readers: https://github.com/go-sql-driver/mysql/blob/master/infile.go |
Pull request here: #101 |
There doesn't appear to be a way to specify a client SSL certificate.
The text was updated successfully, but these errors were encountered: