Skip to content
Advertisement

How do I connect to Postgresql using SSL from SqlAchemy+pg8000?

Connecting to postgres via pg8000 from SqlAlchemy worked fine until I enabled SSL on postgres.

JavaScript

Now it seems to fail with:

JavaScript

Advertisement

Answer

You need to add a connect_args dict:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement