sql-migrate icon indicating copy to clipboard operation
sql-migrate copied to clipboard

SSL connections with client certs

Open luna-duclos opened this issue 8 years ago • 4 comments

Currently, I haven't found a way to connect to a MySQL server that requires client cert-based authentication. Is there a way to do this ? If not, I'd be happy to contribute a PR after discussing how we want this to be done.

luna-duclos avatar Mar 21 '16 08:03 luna-duclos

I haven't used cert-based auth myself, so I can't really tell what should be added, but I don't think it'll be hard to add.

Will happily accept a PR, it's probably a small change anyway.

rubenv avatar Mar 21 '16 08:03 rubenv

For MySQL, cert-based auth requires calling mysql.RegisterTLSConfig, I was thinking of adding an option to the yml file: mysql-cert-file, and having sql-migrate open and register it if specified, would that work for you?

luna-duclos avatar Mar 21 '16 10:03 luna-duclos

Sounds good!

rubenv avatar Mar 21 '16 13:03 rubenv

@luna-duclos I've run into the same issue with goose migrations and we are looking to switch. Have you made any progress on this or did you find another solution?

Thank you

adamrt avatar Feb 13 '17 22:02 adamrt