From: Magnus Hagander <magnus@hagander.net>
To: Lou Picciano <LouPicciano@comcast.net>
Cc: pgsql-testers <pgsql-testers@postgresql.org>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: [TESTERS] Location of certs -Windows 7 SSL mode?
Date: Wed, 7 Jul 2010 10:50:03 +0200
Message-ID: <AANLkTil1O2IciRJEubQSyesDCpzMyXIkzqXQzPdlbtAw@mail.gmail.com> (raw)
In-Reply-To: <323E0FB3-767F-457F-A041-908B0A805C68@comcast.net>
References: <323E0FB3-767F-457F-A041-908B0A805C68@comcast.net>
On Wed, Jul 7, 2010 at 01:37, Lou Picciano <LouPicciano@comcast.net> wrote:
> [TEST REPORT]
> [Release]: 9.0Beta2
> [Test Type]: Testing connection - pgAdmin - using certificate on Windows 7 -
> Specifically, what is correct default placement of certs?
> [Test]: Attempt to connect - SSL required or better - using standard
> AppData/Roaming location for certs, key.
> [Platform]: Windows 7 Ultimate 64-bit - attempting connection using
> pgAdminIII as a test of SSL connectivity.
> [Parameters]: First, attempted connection, with SSL required and NO certs,
> to determine default location based on error message!
> [Failure]: Yes
> [Results]: Installation of a pre-packaged PostgreSQL, using an installer (in
> this case a b1 packaged by EnterpriseDB), did create a postgresql folder in
> the expected location: C:\Users\<username>\AppData\Roaming\postgresql.
> After placement of valid certs and key in this folder, cannot connect in
> any SSL mode.
> Interestingly, the error message reverses the pathname delimiter, halfway
> through the message, from Windows-standard to UNIX-standard (is this
> relevant?)...
> "Error connecting to the server: could not open certificate file
> "C:\Users\<username>\AppData\roaming/postgresql/potgresql.crt": No such file
> or directory.
The reversed slashes are pretty normal, and should work just fine.
What is your connection string? Are you specifying the cert file there as well?
Does the file actually exist in that directory? Does the permissions
on the file and all the directories leading up to it let you read the
file?
The code itself should actually "never" do this - it specifically
checks if the file doesn't exist, and should *not* show that error..
It should fail much later, when the server actually requests the
cert.. And the API documentation for stat() on windows says it'll
always return ENOENT on failure. Seems to me Windows is confused, but
I'm not entirely sure how.
Can you try specifying an explicit file say directly in c:\, just to
see if that works?
BTW, if you post bug reports to -bugs, it'll make a lot more people see them.
--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/
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-testers@postgresql.org
Cc: magnus@hagander.net, LouPicciano@comcast.net, pgsql-bugs@postgresql.org
Subject: Re: [TESTERS] Location of certs -Windows 7 SSL mode?
In-Reply-To: <AANLkTil1O2IciRJEubQSyesDCpzMyXIkzqXQzPdlbtAw@mail.gmail.com>
References: <323E0FB3-767F-457F-A041-908B0A805C68@comcast.net> <AANLkTil1O2IciRJEubQSyesDCpzMyXIkzqXQzPdlbtAw@mail.gmail.com>
* 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