Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 8171E64FD76 for ; Wed, 29 Oct 2008 15:49:35 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 65790-04 for ; Wed, 29 Oct 2008 15:49:29 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.177]) by postgresql.org (Postfix) with ESMTP id 7FB1E64FD2D for ; Wed, 29 Oct 2008 15:49:28 -0300 (ADT) Received: by wa-out-1112.google.com with SMTP id j4so72054wah.19 for ; Wed, 29 Oct 2008 11:49:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=kjKxBYTy2bNxNcc2vdf7Os4tndqVucIxplU0QiN7nrM=; b=rHz2IsTv6l9M4bG2RHUmJL1cIl/5XnmPx16TxVXUlfrfim0LhJZILVkNHzCRchpPI+ xfHkPRe/6Pp7XvV1pknmc+eCrYk9xBgy9fhHI1iaBqJyvigotZbkpipr0LrlKPmpEh84 ts4JXusjWtKLvXeE5iJiXb2W0cDJKBEiuXVr0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=pcdr2YwP7wFmlfvKBc7ZZDGjVQ24qZnNf4xFSS6CiX48Hml2fHvXXoJMrqH8MhCQWA d/hiKi0nz2U+Y+2YvW+KCctuSLpwimVX/msRnhC6D3CyfbayJ69AHPeAvXrCYXeMOPeQ hEMtK8XHgFKOCV4ZiZQBDxgGaEsLIFd/fPSuE= Received: by 10.114.146.6 with SMTP id t6mr7409288wad.23.1225306166929; Wed, 29 Oct 2008 11:49:26 -0700 (PDT) Received: by 10.114.39.11 with HTTP; Wed, 29 Oct 2008 11:49:26 -0700 (PDT) Message-ID: Date: Wed, 29 Oct 2008 12:49:26 -0600 From: "Scott Marlowe" To: "Peter Koczan" Subject: Re: SSL and md5 password? Cc: "pgsql-admin@postgresql.org" In-Reply-To: <4544e0330810291007p5b68fba2o4ee782b4d4f92878@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4544e0330810291007p5b68fba2o4ee782b4d4f92878@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200810/174 X-Sequence-Number: 30630 On Wed, Oct 29, 2008 at 11:07 AM, Peter Koczan wrote: > Hi all, > > I'm looking to add an md5-based user to a postgres server, and I can't > seem to get psql to connect using SSL. Normally I use Kerberos to > connect, and that works flawlessly with SSL. I'd much prefer to use > SSL connections, so I'm wondering if there's something I'm doing > wrong. > > Here's what happens with a Kerberos connection...works just fine, > connects using SSL: > > $ /s/postgresql/bin/psql -h dumbo.cs.wisc.edu -p 5432 koczan_test > Welcome to psql 8.3.4, the PostgreSQL interactive terminal. > > Type: \copyright for distribution terms > \h for help with SQL commands > \? for help with psql commands > \g or terminate with semicolon to execute query > \q to quit > > SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256) > > koczan_test=> > > And an md5 connection... > > $ /s/postgresql/bin/psql -h dumbo.cs.wisc.edu -p 5432 -U test_md5 koczan_test > Password for user test_md5: > psql: FATAL: no pg_hba.conf entry for host "128.105.162.36", user > "test_md5", database "koczan_test", SSL off According to this, you're trying to connect with SSL off, right? I don't think you've got any matching lines for that in your pg_hba.conf. But I could be reading that wrong.