Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
5373 Visualizzazioni

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
Abbandona
Autore

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

Risposta migliore

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
Abbandona
Risposta migliore

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
Abbandona