Skip to content

--require_secure_transport=ON #579

Answered by dossy
m1kesk asked this question in Support
Sep 16, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I have environment variable DATABASE_URL
mysql://user:pass@host:3306/database_name?ssl-ca=/mysql.crt.pem

Try:

mysql://user:pass@host:3306/database_name?tls=true

or:

mysql://user:pass@host:3306/database_name?tls=skip-verify

if your server-side SSL certificate is self-signed (presumably, by the CA represented in /mysql.crt.pem) or otherwise invalid.

If we wanted to support specifying a custom CA certificate, we would need to implement mysql.RegisterTLSConfig in the dbmate mysql driver in some way, which currently isn't supported.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@m1kesk
Comment options

Answer selected by m1kesk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants