Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XoD5P-0006rv-CZ for pgsql-odbc@arkaria.postgresql.org; Tue, 11 Nov 2014 15:10:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XoD5O-00049d-OO for pgsql-odbc@arkaria.postgresql.org; Tue, 11 Nov 2014 15:10:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XoD5O-00049X-6J for pgsql-odbc@postgresql.org; Tue, 11 Nov 2014 15:10:26 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XoD5I-0000Kl-Fd for pgsql-odbc@postgresql.org; Tue, 11 Nov 2014 15:10:24 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 4D2E8209AC for ; Tue, 11 Nov 2014 10:10:16 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Tue, 11 Nov 2014 10:10:16 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= x-sasl-enc:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=mesmtp; bh=sJEVcFgQqKwjGC/VlWE8rMVpWGE=; b=eTukj8e/P8wex1CZeR NxSPN2BrCI4IR4xHXA2H/0y5ofibYXABPhOpEmkmB0TlrsxghS+EBMH+V5h6c23J 3/EPrWyjWwKpPZafUgW0FNdPFBbdvpzD/4CU6w9DBJvY0CGKFue3CF1dkG2FxVjq LiQzmlMvwMHjqDuk14H4Qjlo0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:message-id:date:from :mime-version:to:subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=sJEVcFgQqKwjGC/VlWE8rM VpWGE=; b=DtWQQIsJEfgw4PrFvx/A/C7lz8I0MJV/gC1GujwxFmi6KmplmNNMSH XUKSNBoAyqUitZsqjAXY+VUbKQdORdV/iUy7kEjbkFtFrpaEIA7qKNJaDcsTMDgG wflvKj1k0i45rvimFZ9I+0np6y7g+QXrcp5W13r7KhkujfYAcWy5U= X-Sasl-enc: ctCerlP2gIZYvVskOGXB5h48QWvLu2NMphlwqeOynuGe 1415718616 Received: from [192.168.1.2] (unknown [174.21.91.221]) by mail.messagingengine.com (Postfix) with ESMTPA id D1FBEC00017; Tue, 11 Nov 2014 10:10:15 -0500 (EST) Message-ID: <546226D7.5000505@aklaver.com> Date: Tue, 11 Nov 2014 07:10:15 -0800 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Ed Hutchinson , pgsql-odbc@postgresql.org Subject: Re: Connection string parameter "sslrootcert" does not work References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org On 11/10/2014 04:25 PM, Ed Hutchinson wrote: > Hi, > I am using the psqlODBC driver to connect to Amazon RDS. I am able > to connect successfully after enabling SSL encryption via the connection > string parameter "sslmode=require". I want to now enable verification of > server identity too, which means that I need to provide the CA > certificate path to the Postgres driver. I tried the connection > parameters "sslmode=verify-full;sslrootcert=", but the > driver is not able to pick up the file from the specified path (I tried > on Windows and Mac OS X). Things work, however, when the certificate is > placed in the default place the driver looks in - > %APPDATA%\Roaming\postgresql\root.crt on Windows; ~/.postgresql/root.crt > on Mac. > > Is this a bug that needs to be fixed or am I doing something wrong? > I am using psqlodbc version 09_03_0300-1. Not sure, how are you specifying the path to the certificate? > > Thanks, > Ed > > The resources I consulted: > http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts.General.SSL > http://www.postgresql.org/docs/9.3/static/libpq-ssl.html > http://www.postgresql.org/docs/9.3/static/libpq-connect.html -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc