pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Klemens Seydel <pierromail@gmx.de>
To: Mitch Vincent <mitch@doot.org>
Cc: pgsql-odbc@postgresql.org
Subject: Re: SSL Support?
Date: Thu, 24 Jan 2002 04:01:17 +0100
Message-ID: <019301c1a483$694a42b0$1764a8c0@potsdam.amsoft.de> (raw)
References: <Pine.LNX.4.21.0201232245070.18172-100000@nanu.visionforisrael.com>
	<00ca01c1a448$b84cb540$0200000a@Mitch>

Hi Mitch,

there will be no point in the faq's concerning the setup of secure
tunnels since it's no *PART* of postgresql but a way of *USING* it.

Setting up an SSL tunnel is really easy:

1. Get Stunnel (www.stunnel.org)
2. Unpack on Client, Unpack on Server
3. Run on Server:
   stunnel-3.20.exe -p <pem-file> -d <sslextport> -r localhost:<dbport>
4. Run on Client:
   stunnel-3.20.exe -c -d <localport> -r <server>:<sslextport>
5. Make your ODBC connection (yes I mean client side) listening
   to localhost:<localport>
6. See it working

Now, if all works and you want to make it bombsafe, change your
database configuration to only accept new connections from the
inside "localhost"/"127.0.0.1" but no hosts else. The only way
the data can be still accessed, is from your brand new ssl tunnel
or the server machine itself.

You see it requires minimal a certificate (i.e. *.pem-file) on the
server side (optional on client side) suggesting you already got a
working certificate from your root authority. Get a simple (free)
certificate only for testing purposes from www.thawte.com.

They will contact you if you need a personal identity certificate
or a root key so you can be your own root authority, giving out
identity certs to your customers or workers or anybody else.

The Scheme is easy to understand:

[Server]   SSL-Port [ ]<----- SSL on TC/IP ----->[ ] SSL-Port   [Client]
   |                 |                            |                |
   |                 |                            |                |
   |        (stunnel sitting here)       (stunnel sitting here)    |
   |             (trusted)                        |                |
   |                 |                            |                |
  [ ] DB-Port        |                            |       DB-Port [ ]
   |_________________|                            |________________|


That's just a sample config, working locally here on my machine, for a
custom project to be moved to internet soon. I only need to change the
hosts in config files from "localhost" to the corresponding server ip
address. I use newest winxp+mysql and rhlinux/pgsql the stuff works
fine on both systems (better should I say worlds?).

I hope, I lightened it out enough.

Regards from germany,

Klemens Seydel
AM-Soft - IT-Systeme

          Hameln         Leipzig         Potsdam          Berlin
Tel.:  05151-9468-0   034206-6593-0    0331-743881-0    030-8058693-0
Fax :  05151-9468-88  034206-6593-88   0331-743881-31   030-8058693-88
         email : kseydel@am-soft.de       http://www.am-soft.de



----- Original Message -----
From: "Mitch Vincent" <mitch@doot.org>
To: <pgsql-odbc@postgresql.org>
Sent: Wednesday, January 23, 2002 9:01 PM
Subject: Re: [ODBC] SSL Support?


> Thanks!
>
> I did check out the website and can't seem to find a link to a FAQ (and
the
> documentation didn't mention SSL as far as I could find).. Perhaps I'm
> mistaken, sometimes things hide in plain view with me :-)
>
> -Mitch
>
> ----- Original Message -----
> From: "Cedar Cox" <cedarc@visionforisrael.com>
> To: "Mitch Vincent" <mitch@doot.org>
> Sent: Wednesday, January 23, 2002 1:46 PM
> Subject: Re: [ODBC] SSL Support?
>
>
> >
> > No. (um.. IIRC.  Read the docs/faqs). Use something like ssh tunnels..
> > You should probably visit http://odbc.postgresql.org
> >
> > -Cedar
> >
> > On Wed, 23 Jan 2002, Mitch Vincent wrote:
> >
> > > I'm new to ODBC, and Windows programming (though I've been programming
> with
> > > PostgreSQL for years, never with ODBC from Windows.)
> > >
> > > Is there any SSL support in the ODBC driver for PostgreSQL ?
> > >
> > > Thanks!
> > >
> > > -Mitch
> > >
> >
> >
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>




















view thread (7+ messages)  latest in thread

Message-ID: <019301c1a483$694a42b0$1764a8c0@potsdam.amsoft.de>
Permalink:  ../019301c1a483$694a42b0$1764a8c0@potsdam.amsoft.de/
Also on:    postgresql.org/message-id/019301c1a483$694a42b0$1764a8c0@potsdam.amsoft.de

 · 

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-odbc@postgresql.org
  Cc: pierromail@gmx.de, mitch@doot.org
  Subject: Re: SSL Support?
  In-Reply-To: <019301c1a483$694a42b0$1764a8c0@potsdam.amsoft.de>
  References: <Pine.LNX.4.21.0201232245070.18172-100000@nanu.visionforisrael.com> <00ca01c1a448$b84cb540$0200000a@Mitch> <019301c1a483$694a42b0$1764a8c0@potsdam.amsoft.de>

* 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