pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Inoue, Hiroshi <inoue@tpf.co.jp>
To: Ed Hutchinson <edhutch1963@gmail.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Connection string parameter "sslrootcert" does not work
Date: Wed, 12 Nov 2014 12:36:10 +0900
Message-ID: <5462D5AA.2040602@tpf.co.jp> (raw)
In-Reply-To: <CAO99JCM_54=x=s4UZJGkREo+w07GObt8pd1ALDjQoxYsZ8TAdw@mail.gmail.com>
References: <CAO99JCPb0S+jnmZ6BdXLPLz=cxnV1Kbfe_jxRan6xxNvLsccrA@mail.gmail.com>
	<546226D7.5000505@aklaver.com>
	<CAO99JCM_54=x=s4UZJGkREo+w07GObt8pd1ALDjQoxYsZ8TAdw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

(2014/11/12 2:52), Ed Hutchinson wrote:
> Thanks, Adrian.
>
>
> Sorry, I should have provided more details.
>
> 1) Using this connection string on Windows:
> DRIVER={PostgreSQL 
> Unicode};DATABASE=dbedhTest;SERVER=edhpostgresql.cn4dj2uqcnwe.us-west-1.rds.amazonaws.com 
> <http://edhpostgresql.cn4dj2uqcnwe.us-west-1.rds.amazonaws.com>;UID=MyUser;PWD=********;PORT=5432;...:\\temp\\rds-ssl-ca-cert.pem
>
> 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:
> DRIVER={PostgreSQL 
> Unicode};DATABASE=dbedhTest;SERVER=edhpostgresql.cn4dj2uqcnwe.us-west-1.rds.amazonaws.com 
> <http://edhpostgresql.cn4dj2uqcnwe.us-west-1.rds.amazonaws.com>;UID=MyUser;PWD=********;PORT=5432;...
>
> 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:
> DRIVER={PostgreSQL 
> Unicode};DATABASE=dbedhTest;SERVER=edhpostgresql.cn4dj2uqcnwe.us-west-1.rds.amazonaws.com 
> <http://edhpostgresql.cn4dj2uqcnwe.us-west-1.rds.amazonaws.com>;UID=MyUser;PWD=********;PORT=5432;...
>
> 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

view thread (18+ messages)  latest in thread

Message-ID: <5462D5AA.2040602@tpf.co.jp>
Permalink:  ../5462D5AA.2040602@tpf.co.jp/
Also on:    postgresql.org/message-id/5462D5AA.2040602@tpf.co.jp

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: inoue@tpf.co.jp, edhutch1963@gmail.com, adrian.klaver@aklaver.com
  Subject: Re: Connection string parameter "sslrootcert" does not work
  In-Reply-To: <5462D5AA.2040602@tpf.co.jp>
  References: <CAO99JCPb0S+jnmZ6BdXLPLz=cxnV1Kbfe_jxRan6xxNvLsccrA@mail.gmail.com> <546226D7.5000505@aklaver.com> <CAO99JCM_54=x=s4UZJGkREo+w07GObt8pd1ALDjQoxYsZ8TAdw@mail.gmail.com> <5462D5AA.2040602@tpf.co.jp>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox