SSL handshake failed when using in python #407
-
I can't figure out how to connect to the database, which each attempt failing with the error from the title SSL handshake failed I'm using databases and orm to connect to the database. import databases
database = databases.Database('mysql://ofpslt425rs3vfpwyi7h:[email protected]/default', ssl='verify-full') |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You will likely need to specify the SSL certificate authority (CA) and point your database driver to it in order for your server to be able to establish a secure connection successfully. A good starting point would be to read through this guide in our documentation. I have also blogged about SSL-centric issues not too long ago. If you're still running issues afterwards, please share the parts of your code that handle the connection as well as the full error message. |
Beta Was this translation helpful? Give feedback.
You will likely need to specify the SSL certificate authority (CA) and point your database driver to it in order for your server to be able to establish a secure connection successfully. A good starting point would be to read through this guide in our documentation. I have also blogged about SSL-centric issues not too long ago.
If you're still running issues afterwards, please share the parts of your code that handle the connection as well as the full error message.