While upgrading from an older version of nodered to the latest, I tested this node.
When trying to connect to a Digital Ocean managed database with SSL=true I get the following error:
"Error: self signed certificate in certificate chain"
With SSL=false i get this error:
error: no pg_hba.conf entry for host "xxx", user "xxx", database "xxx", SSL off
I think the reason for these errors are that pg since v. 8.0 sets
rejectUnathurized = true
as default as described here: https://node-postgres.com/announcements
While upgrading from an older version of nodered to the latest, I tested this node. When trying to connect to a Digital Ocean managed database with SSL=true I get the following error:
"Error: self signed certificate in certificate chain"
With SSL=false i get this error:
error: no pg_hba.conf entry for host "xxx", user "xxx", database "xxx", SSL off
I think the reason for these errors are that pg since v. 8.0 sets
rejectUnathurized = true
as default as described here: https://node-postgres.com/announcementsAt the same time DO probably self-signs their certificates as speculated here: https://github.com/Budibase/budibase/issues/1967#issuecomment-879981467
I am able to connect to my database by passing this config node as described in the documentation:
But it would be neat to be able to set rejectUnathorized in the properties setting in the node:![image](https://github.com/alexandrainst/node-red-contrib-postgresql/assets/19395956/63ced454-106a-4b7a-b4c5-4a52b32e2787)