Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Add CA param #99

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Add CA param #99

wants to merge 4 commits into from

Conversation

Gloix
Copy link

@Gloix Gloix commented Oct 5, 2019

This should help fix issue #98.

I'm a Go noob, so if there are any styling/logic issues, please point them out.

This works by changing the tls config option given to the MySql client to "custom" if the ssl_ca parameter is defined. This effectively allows a different tls configuration to be used, as defined in the go-sql-driver docs. This new configuration specifies a set of CA certificates and skips issuer verification depending on the original tls parameter being "skip-verify".

@ghost ghost added the size/S label Oct 5, 2019
@oker1
Copy link

oker1 commented Oct 7, 2019

I was contemplating implementing this, with one difference, I would have the CA param accept the contents of the file. This way it can be read from different resources/data not just local files and passed to this.

@ghost ghost added the documentation label Oct 7, 2019
@Gloix
Copy link
Author

Gloix commented Oct 7, 2019

Nice suggestion. I added it to the recently commited changes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants