How to connect Django to a mysql database over an ssl connection? -
i'm trying connect django mysql database accessible through ssl connection. how configure this?
my first guess setting 'options' property of database definition. however, can't find info on possible options use. option 'ssl': '/map/to/ca-cert.pem' not work.
the following command seems work:
mysql -h url.to.host -u lizard -p --ssl-ca=./ca-cert.pem
edit: ok i'm looking @ python-mysqldb documentation... maybe can find answer there.
django uses python mysqldb
library interface mysql. looking @ the mysqldb connection documentation, looks ssl
option requires dictionary argument. might work:
'options': {'ssl': {'key': '/map/to/ca-cert.pem'}}
Comments
Post a Comment