node-red-contrib-postgresql icon indicating copy to clipboard operation
node-red-contrib-postgresql copied to clipboard

Can't get SSL CA file to work with config

Open pbrunier opened this issue 11 months ago • 0 comments

Hi, I have a self-signed CA and want to load the CA file into the config of this node. Now have it working with {"rejectUnauthorized": false} in the SSL options, but whatever I do, I don't get the ca file to be accepted. Doesn't seem to do anything.

Tried: { "rejectUnauthorized": true and false, "ca": "/path/to/file" } -AND- { "rejectUnauthorized": true and false, "ca": "COMPLETE_CA_CERT_STRING" }

When rejectUnauthorized is set to false it always works. When set to true it doesn't work. The only message that shows up is: Error: self-signed certificate in certificate chain I don't get an error stating that the CA file cannot be found or is invalid, suspecting that that part of the config isn't used.

Version: 0.14.0

Thanks in advance for your help.

pbrunier avatar Mar 15 '24 12:03 pbrunier