Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1adJFY-0005YO-8D for pgsql-bugs@arkaria.postgresql.org; Tue, 08 Mar 2016 15:08:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1adJFX-0005nU-RI for pgsql-bugs@arkaria.postgresql.org; Tue, 08 Mar 2016 15:08:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1adJAD-0006LM-V2 for pgsql-bugs@postgresql.org; Tue, 08 Mar 2016 15:03:10 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1adJA6-000492-Sl for pgsql-bugs@postgresql.org; Tue, 08 Mar 2016 15:03:09 +0000 MIME-Version: 1.0 Subject: BUG #14006: psql cannot find client certificates in default location To: pgsql-bugs@postgresql.org From: lupitheloop@gmail.com Date: Tue, 08 Mar 2016 15:02:53 +0000 Message-ID: <20160308150253.8901.83353@wrigleys.postgresql.org> X-Pg-Spam-Score: -0.3 (/) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 14006 Logged by: Loop Email address: lupitheloop@gmail.com PostgreSQL version: 9.5.0 Operating system: Windows Server 2012 R2 Description: PostgreSQL documentation at http://www.postgresql.org/docs/9.5/static/libpq-ssl.html says that when a client certificate is requested by a server, a windows client psql will use by default the credentials located at %APPDATA%\postgresql\postgresql.crt and %APPDATA%\postgresql\postgresql.key However, my psql client application (v 9.5.0) in a Windows Server 2012 R2 cannot find the certificates in this location and only works when this location is specifically set using the sslcert and sslkey attributes when connecting. Is this a bug or am I using a wrong path? This an example of execution: ------------------------------------------- C:\Program Files\PostgreSQL\9.5\data> ..\bin\psql "postgresql://postgres@localhost/postgres" psql: FATAL: connection requires a valid client certificate FATAL: no pg_hba.conf entry for host "::1", user "postgres", database"postgres", SSL off C:\Program Files\PostgreSQL\9.5\data> ..\bin\psql "postgresql://postgres@localhost/postgres?sslkey=postgresql\postgresql.key&sslcert=postgresql\postgresql.crt" psql (9.5.0) SSL connection (protocol: TLSv1.2, cipher: ECDHE-RSA-AES256-GCM-SHA384,bits: 256, compression: off) Type "help" for help. postgres=# -------------------------------- cheers -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs