(2014/11/12 2:52), Ed Hutchinson wrote:
Thanks, Adrian.
Sorry, I should have provided more details.
1) Using this connection string on Windows:
I get back:
root certificate file \"C:\\Users\\edhutch\\AppData\\Roaming/postgresql/root.crt\" does not exist\nEither provide the file or change sslmode to disable server certificate verification.
2) Using this connection string on Windows:
I get back the same error:
root certificate file \"C:\\Users\\edhutch\\AppData\\Roaming/postgresql/root.crt\" does not exist\nEither provide the file or change sslmode to disable server certificate verification.
3) Using this connection string on Mac OS X:
I get back:
root certificate file \"/Users/edhutch/.postgresql/root.crt\" does not exist\nEither provide the file or change sslmode to disable server certificate verification.
When I rename the pem file to root.crt and place it in the default location that the driver expects, the connection goes through fine.
Currently there's no option to specify path name.
One way is to set an environment variable PGSSLROOTCERT.
regards,
Hiroshi Inoue
--
I am using the free version of SPAMfighter.
SPAMfighter has removed 12912 of my spam emails to date.
Get the free SPAMfighter here:
http://www.spamfighter.com/len Do you have a slow PC? Try a Free scan
http://www.spamfighter.com/SLOW-PCfighter?cid=sigen