Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id D24F71D123F4 for ; Thu, 15 Mar 2012 22:47:11 -0300 (ADT) Received: from cl-174.chi-02.us.sixxs.net ([2001:4978:f:ad::2] helo=tamriel.snowman.net) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S8MG4-00025w-KV for pgsql-odbc@postgresql.org; Fri, 16 Mar 2012 01:47:10 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id B726F22959; Thu, 15 Mar 2012 21:46:51 -0400 (EDT) Date: Thu, 15 Mar 2012 21:46:51 -0400 From: Stephen Frost To: Hiroshi Inoue Cc: "Duffey, Blake A." , "pgsql-odbc@postgresql.org" Subject: Re: using pgsql-odbc using client certificate auth Message-ID: <20120316014651.GZ3938@tamriel.snowman.net> References: <0984F8A75BAED547B7374948DD065384501D761D@mbx2.mitretek.org> <20120314172704.GX3938@tamriel.snowman.net> <4F6188F0.8050400@tpf.co.jp> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Fw8vdPO5iEPGjqL+" Content-Disposition: inline In-Reply-To: <4F6188F0.8050400@tpf.co.jp> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.2.0-1-amd64 (x86_64) X-Uptime: 21:45:35 up 18 days, 7:50, 7 users, load average: 0.13, 0.04, 0.05 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201203/18 X-Sequence-Number: 10799 --Fw8vdPO5iEPGjqL+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hiroshi, * Hiroshi Inoue (inoue@tpf.co.jp) wrote: > I'm not sure if the client certificates works or not. > As for the 32bit driver aren't you using psqlodbc_09_01_0100? > If so please try psqlodbc_09_01_0100-1. Thank you for that! Turns out that was exactly it. Other than that, you have to set the necessary environment variables to tell libpq where to find the certificate, the key, and the root CA certificates. Once those are done, it 'just works'. It would be nice if it could use the certificate store, and it looks like there is actually code in the ODBC driver to do that, but this is good enough for what I need it for. Thanks again! Stephen --Fw8vdPO5iEPGjqL+ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk9im4sACgkQrzgMPqB3kiiOswCdFg7F8h6KrB6MNhAZ6pzGgY09 wmUAn0oBhh1Rse8XWHkKz+ASo42TxIWu =3P2z -----END PGP SIGNATURE----- --Fw8vdPO5iEPGjqL+--