SSL patch that adds support for optional client certificates.
authorBruce Momjian <bruce@momjian.us>
Fri, 14 Jun 2002 04:36:58 +0000 (04:36 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 14 Jun 2002 04:36:58 +0000 (04:36 +0000)
commitadcbd2eb15a37e856dca1afabc776f593074e4a6
tree623432fe8bd96c00a458e675c4fb81b0f8d5ad13
parent0dd86440f75256c2e807a9973154b3a7c61423c3
SSL patch that adds support for optional client certificates.

If the user has certificates in $HOME/.postgresql/postgresql.crt
and $HOME/.postgresql/postgresql.key exist, they are provided
to the server.  The certificate used to sign this cert must be
known to the server, in $DataDir/root.crt.  If successful, the
cert's "common name" is logged.

Client certs are not used for authentication, but they could be
via the port->peer (X509 *), port->peer_dn (char *) or
port->peer_cn (char *) fields.  Or any other function could be
used, e.g., many sites like the issuer + serial number hash.

Bear Giles
src/backend/libpq/be-secure.c
src/include/libpq/libpq-be.h
src/interfaces/libpq/fe-secure.c