pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: libq support for sslpassword connection param, DER format keys
Date: Sat, 30 Nov 2019 20:45:25 +0000
Message-ID: <E1ib9cL-0004i5-W1@gemulon.postgresql.org> (raw)

libq support for sslpassword connection param,  DER format keys

This patch providies for support for password protected SSL client
keys in libpq, and for DER format keys, both encrypted and unencrypted.
There is a new connection parameter sslpassword, which is supplied to
the OpenSSL libraries via a callback function. The callback function can
also be set by an application by calling PQgetSSLKeyPassHook(). There is
also a function to retreive the connection setting, PQsslpassword().

Craig Ringer and Andrew Dunstan

Reviewed by: Greg Nancarrow

Discussion: https://postgr.es/m/f7ee88ed-95c4-95c1-d4bf-7b415363ab62@2ndQuadrant.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4dc63552109f65cebbe168203bd62c5e4c753162

Modified Files
--------------
contrib/dblink/expected/dblink.out        |   2 +-
doc/src/sgml/libpq.sgml                   | 134 ++++++++++++++++++++++++++++++
doc/src/sgml/postgres-fdw.sgml            |   2 +-
src/interfaces/libpq/exports.txt          |   4 +
src/interfaces/libpq/fe-connect.c         |  14 ++++
src/interfaces/libpq/fe-secure-openssl.c  |  99 +++++++++++++++++++++-
src/interfaces/libpq/libpq-fe.h           |   9 ++
src/interfaces/libpq/libpq-int.h          |   2 +
src/test/ssl/Makefile                     |  22 ++++-
src/test/ssl/ssl/client-der.key           | Bin 0 -> 1191 bytes
src/test/ssl/ssl/client-encrypted-der.key | Bin 0 -> 1191 bytes
src/test/ssl/ssl/client-encrypted-pem.key |  30 +++++++
src/test/ssl/t/001_ssltests.pl            |  75 +++++++++++++++--
13 files changed, 376 insertions(+), 17 deletions(-)



view thread (4+ messages)  latest in thread

Message-ID: <E1ib9cL-0004i5-W1@gemulon.postgresql.org>
Permalink:  ../E1ib9cL-0004i5-W1@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ib9cL-0004i5-W1@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: andrew@dunslane.net
  Subject: Re: pgsql: libq support for sslpassword connection param, DER format keys
  In-Reply-To: <E1ib9cL-0004i5-W1@gemulon.postgresql.org>
  References: <E1ib9cL-0004i5-W1@gemulon.postgresql.org>

* 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