Обсуждение: Set PEM phrase callback and pass contents of ssl-certificates files to libpq

Поиск
Список
Период
Сортировка

Set PEM phrase callback and pass contents of ssl-certificates files to libpq

От
Gennady Bekasov
Дата:

Hello.

 

We need connect to a postgresql server by the libpq.dll from a c++-code with root and client openssl certificates.

We need find a method to pass a contents of the certificates files to the libpq (pass cerificates without certificate files for more security).

Also, we need find a method to set a callback for get a PEM pass phrase for the client certificate from UI.

Please, tell us variants of solution these problems.

 

Gennady Bekasov | Software Engineer
17 Pobediteley Avenue, Suite 1210, 220004, Minsk, Belarus
Syberry Corporation | http://www.syberry.com

 

Re: Set PEM phrase callback and pass contents of ssl-certificates files to libpq

От
Peter Eisentraut
Дата:
On 8/7/15 11:37 AM, Gennady Bekasov wrote:
> We need find a method to pass a contents of the certificates files to
> the libpq (pass cerificates without certificate files for more security).
> 
> Also, we need find a method to set a callback for get a PEM pass phrase
> for the client certificate from UI.

I don't think either of these are supported.

You can hack up libpq to support it, though.