How to connect to mysql server with SSL from a flask app
You can add theses informations in your URI like this :
app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql://your-username:your-password@localhost/schema?ssl_key=MyCertFolder/client-key.pem&ssl_cert=MyCertFolder/client-cert.pem'
Or using the SQLAlchemy create_engine, take a look to this post