libpq: Specify pass phrase for SSL key

From: Koen Vermeer <koen(at)vermeer(dot)tv>
To: pgsql-general(at)postgresql(dot)org
Subject: libpq: Specify pass phrase for SSL key
Date: 2007-07-12 15:26:06
Message-ID: 1184253966.5451.11.camel@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I am using libpq to set up an SSL connection to a PostgreSQL server. The
client key is protected by a pass phrase, so when I issue a
PQconnectdb(), I get a prompt stating:

Enter PEM pass phrase:

Instead, I would like to give the user a nice message box, asking for
his/her password. So, how do I 'inject' the right SSL password into the
connection sequence?

Thanks for any help!

Koen

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Edson 2007-07-12 15:29:39 Panic error on attempted update
Previous Message Gregory Stark 2007-07-12 15:06:32 Re: [GENERAL] Count(*) throws error