libq support for sslpassword connection param, DER format keys

Andrew Dunstan <andrew@dunslane.net>

Commit: 4dc63552109f65cebbe168203bd62c5e4c753162
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2019-11-30T20:27:13Z
Releases: 13.0
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

Files

Documentation touched

Discussion