Skip to Content
Menu
This question has been flagged
2 Replies
5313 Views

Hi,

I need to be able to connect Odoo 13.0 to a remote Postgres via SSL. In order to do so, Postgres needs to be told where the sslcert and sslkey are. These parameters, from what I see, cannot be passed to Odoo to tell the connection via psycog2 where the certificate is located at the client level.





Avatar
Discard
Author

Sorry, but I don't mean SSL certificates for HTTPS. I refer to the SSL certificates for the connection between Odoo and Postgres using the parameter db_sslmode = verify_full

Best Answer

Hello Odoo is filtering db_* params and the db_sslcert is not working, you have to use environment variables.

check out https://www.dator.lu/blog/blog-1/odoo-and-postgresql-ssl-authentification-8

Avatar
Discard
Best Answer

Hi, do you find the answer to this point ? I got the same issue, when I'm trying to enrich my psycog2 with SSL parameters, i got : 

odoo server: error: no such option: --db_sslcert
Usage: odoo server [options]


Avatar
Discard