Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4ZGO-0000xw-9z for pgsql-odbc@arkaria.postgresql.org; Wed, 09 Nov 2016 20:14:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c4ZGN-0004TD-TH for pgsql-odbc@arkaria.postgresql.org; Wed, 09 Nov 2016 20:14:27 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c4ZGN-0004T1-GK for pgsql-odbc@postgresql.org; Wed, 09 Nov 2016 20:14:27 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c4ZGL-0003Qf-Cb for pgsql-odbc@postgresql.org; Wed, 09 Nov 2016 20:14:26 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id D6E51206B1; Wed, 9 Nov 2016 15:14:24 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Wed, 09 Nov 2016 15:14:24 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=U2zyCWtRZLoEWKb r9O266SWL+Io=; b=kv+D/kEVLLt9/bzZKvcCNnpSC/XrlyaJl5MqXBlm+EJ7+S0 UexZ6gomf53GbZK/J7s0KfBjx/89+KXOmSDR1+CNZJPp9OwWu6XxJ0C1mFpRXWy+ 0Te+AK54EDUI3BAENxt5F/9Qd/aWjqhIcjTbaaltmGY9iupnsj+LPefkbQbU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= smtpout; bh=U2zyCWtRZLoEWKbr9O266SWL+Io=; b=GcUTE9tbkBOyaB6e3fyo H0JF2t4Bs3aIpypW0/YmLLGDODeO5DbNwa9e7yZjRIPHT9gt9g5waoGcg4yT3UBU U52UtJ4IcyPXtOWvxyzBHJW4Pt5d2cZLeOFojzajKkrc3wgH+JUJCe18ymCrRNEb /ia+dffMV2UqyZMAvcAa+1g= X-ME-Sender: X-Sasl-enc: g8r7gwf6tqyqQcqCdmcs0n+xEz9gNJBrpqxz7PrlzVEu 1478722464 Received: from [192.168.1.2] (174-21-191-61.tukw.qwest.net [174.21.191.61]) by mail.messagingengine.com (Postfix) with ESMTPA id 5401CF29D1; Wed, 9 Nov 2016 15:14:24 -0500 (EST) Subject: Re: SSL with Access VBA To: Andreas , PostgreSQL mailing lists References: From: Adrian Klaver Message-ID: Date: Wed, 9 Nov 2016 12:14:23 -0800 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 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/09/2016 10:51 AM, Andreas wrote: > Hi, > could someone help me build a connectionstring to use in Access VBA to > get a SSL Connection or is there an HowTo? > > Client is Access 2013 with psqlODBC 9.5.400. > Server PostgreSQL 9.5 on UBUNTU 16.04.1 with the standard installation. > postgresql.conf has SSL=ON so I expect it to work? :} > > pgAdmin connects just fine with "SSL = required". > > This String works with VBA ADODB.Connection without SSL: > strCon = "DRIVER={PostgreSQL > UNICODE};DATABASE=db_test;SERVER=192.168.1.1;PORT=5432;UID=me;PWD=x;A1=7.4+;B1=65535;A7=50;B9=0;C6=1;A4=1;C5=1;C4=1;C8=1;B6=1;UniqueIndex=1;B7=1;AB=0x2" > > > BTW is this still OK? I used this for years. > > When I add ";sslmode=require" connection.open fails with: > -2147467259 server does not support SSL, but SSL was required > > In the parameter-list there is CA as abrevation for sslmode > There is no further information what values are needed. > Adding ";CA=1" connects to the server but how would I know if it is > encrypted? What are your settings in pg_hba.conf for connections? > > > Additional question: How can I activate SSL Compression? > > > Regards > Andreas > > -- 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