Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 85C2D2E026D for ; Sun, 3 Feb 2008 06:38:39 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 74828-09 for ; Sun, 3 Feb 2008 06:38:35 -0400 (AST) Received: from easy2.in-chemnitz.de (easy2.in-chemnitz.de [88.198.17.232]) by postgresql.org (Postfix) with ESMTP id A37ED2E022A for ; Sun, 3 Feb 2008 06:38:35 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by easy2.in-chemnitz.de (Postfix) with ESMTP id A9C53B2898 for ; Sun, 3 Feb 2008 11:38:33 +0100 (CET) Received: from easy2.in-chemnitz.de ([127.0.0.1]) by localhost (easy.in-chemnitz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id usDuVdJIdJHA for ; Sun, 3 Feb 2008 11:38:33 +0100 (CET) Received: by easy2.in-chemnitz.de (Postfix, from userid 1013) id 99B73B27D1; Sun, 3 Feb 2008 11:38:33 +0100 (CET) Date: Sun, 3 Feb 2008 11:38:33 +0100 From: Tino Schwarze To: pgsql-admin@postgresql.org Subject: Re: SSL question Message-ID: <20080203103833.GA25561@easy2.in-chemnitz.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/9 X-Sequence-Number: 28083 On Fri, Feb 01, 2008 at 09:08:23AM -0600, Bronson, Allan B. (Mission Systems) wrote: > I am trying to create a SSl connection to PostGres using JDBC and am not > sure if it is working. > > I read that you must have openssl on the client machine for the > connection to take place. You don't need openssl if you use JDBC since SSL-support is part of Java and the JDBC-driver will handle the SSL stuff. I've never used SSL connections though, so this is a bit of guessing on my side. > I have turned ssl = on in the config file, > created a cert and key file and placed them in the correct directory, > created a truststore and add the ?ssl=true to the url for the client. > When I do all this I connect and get data back from the db. My > confusion is when I read that I need openssl on the client machine to > connect, since I can connect without openssl installed. I do notice > that if my truststore does not have the cert placed in it, I get an > error saying missing certificate ( something like that ), does that mean > ssl is working for the client and server? I'd simply take a packet sniffer like wireshark and look at the network traffic with and without SSL. That way you'll see what is going on and whether it's encrypted. HTH, Tino. -- www.craniosacralzentrum.de www.spiritualdesign-chemnitz.de Tino Schwarze * Lortzingstraße 21 * 09119 Chemnitz