pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeanna Geier <jgeier@apt-cafm.com>
To: Michael Fuhr <mike@fuhr.org>
Cc: pgsql-admin@postgresql.org
Subject: Re: Beginning SSL Questions
Date: Thu, 14 Sep 2006 10:11:31 -0500
Message-ID: <00bb01c6d810$100fb8e0$6700a8c0@geier> (raw)
References: <009801c6d808$7200a260$6700a8c0@geier>
	<20060914150157.GA76098@winnie.fuhr.org>

Thanks for the reply Michael.

I'm getting started and will report back on any issues I run into; this 
mailing list is excellent at responding and helping troubleshoot!!  So 
thanks to all for that!!!

----- Original Message ----- 
From: "Michael Fuhr" <mike@fuhr.org>
To: "Jeanna Geier" <jgeier@apt-cafm.com>
Cc: <pgsql-admin@postgresql.org>
Sent: Thursday, September 14, 2006 10:01 AM
Subject: Re: [ADMIN] Beginning SSL Questions


> On Thu, Sep 14, 2006 at 09:17:00AM -0500, Jeanna Geier wrote:
>> - In the docs, it says that when using SSL in Postgres "This requires
>> that OpenSSL is installed on both client and server systems and
>> that support in PostgreSQL is enabled at build time" - is this
>> correct?
>
> PostgreSQL must have been built with the --with-openssl configure
> option and the server needs "ssl = on" in postgresql.conf.
>
>> Or can we use the certificates and keystore file we generated using
>> the Jave keytool implementing SSL with Tomcat?
>
> You can use the same certificate and key but you'll need to copy
> them to your $PGDATA directory as server.crt and server.key (whether
> using the same certificate and key is a good idea is an administrative
> and/or security matter, but from a technical standpoint it should
> work).  If you want to require SSL client authentication then also
> install the CA certificate(s) as root.crt.  I'd suggest getting
> non-authenticated SSL working first and only then set up client
> authentication if you need it.
>
> If you want to require SSL connections (authenticated or not) then
> use "hostssl" in pg_hba.conf and make sure no other entry will match
> a non-SSL connection.
>
>> - In perusing the mailing list, it appears that this is not going
>> to be a 'simple' task...any pointers that anyone can give to me
>> before we start?  If possible, I'd like to avoid another hair-pulling
>> three week task! =o)
>
> Setting up SSL is simple.  Read "Secure TCP/IP Connections with
> SSL," "SSL Support," and "Client Authentication" in the documentation
> and follow the instructions therein.
>
> http://www.postgresql.org/docs/8.1/interactive/ssl-tcp.html
> http://www.postgresql.org/docs/8.1/interactive/libpq-ssl.html
> http://www.postgresql.org/docs/8.1/interactive/client-authentication.html
>
> If you have trouble then please report what you did, what you
> expected to happen, and what did happen (including client and server
> error messages).
>
> -- 
> Michael Fuhr
> 




view thread (7+ messages)  latest in thread

Message-ID: <00bb01c6d810$100fb8e0$6700a8c0@geier>
Permalink:  ../00bb01c6d810$100fb8e0$6700a8c0@geier/
Also on:    postgresql.org/message-id/00bb01c6d810$100fb8e0$6700a8c0@geier

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jgeier@apt-cafm.com, mike@fuhr.org
  Subject: Re: Beginning SSL Questions
  In-Reply-To: <00bb01c6d810$100fb8e0$6700a8c0@geier>
  References: <009801c6d808$7200a260$6700a8c0@geier> <20060914150157.GA76098@winnie.fuhr.org> <00bb01c6d810$100fb8e0$6700a8c0@geier>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox