Connect to PostgreSQL via SSL

Hi - Is it possible to configure Orthanc to connect to PostgreSQL using SSL?

Not seeing any options in the JSON config. Other drivers I’ve used (Ruby), do it by default when required by the database.

I currently have an AWS PostgreSQL RDS instance that requires SSL, and am seeing the following error on startup:

This feature has never been tested so far.

Please give a try by fine-tuning the “ConnectionUri” configuration option of the PostgreSQL plugins:
http://book.orthanc-server.com/plugins/postgresql.html

https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-CONNSTRING

Sébastien-

Thanks for the pointer - I forgot about the URL params. I tried adding sslmode=require, but I’m still getting an error.

Here’s the config:

"PostgreSQL" : { "EnableIndex" : true, "EnableStorage" : true, "ConnectionUri" : "postgresql://user:pwd@host:5432/orthanc?sslmode=require" }

And, the error message:

OK, so please add an issue to our bug tracker:
https://bitbucket.org/sjodogne/orthanc/issues?status=new&status=open

I’ll try and give a look in the following weeks.

https://bitbucket.org/sjodogne/orthanc/issues/105/unable-to-connect-to-postgresql-database

Thanks!