Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
5338 Vues

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
Ignorer
Auteur

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

Meilleure réponse

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
Ignorer
Meilleure réponse

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
Ignorer