This is a simple Java application that uses PostgreSQL's JDBC driver
to establish a client-certificate protected connection to a PostgreSQL
server configured to require client certificates. It is intended to
test a proposed change in PostgreSQL's client certificate request
behaviour.

With an unpatched server, this app will only work with 'custom'
specified for the SSLSocketFactory argument. The Java default
implementation ('default') will not work, because the server doesn't
send the client enough information to select which client certificate
to present.

See discussion of bug #5468 for details on the issue, and a patch
to the server.

See the in-app documentation for usage:

    java -jar PgClientDemo.jar


To compile this project you will need the widely-used Java build tool Maven 2
installed. Just:

   mvn install

to download all dependencies, compile the project, and produce an executable
jar in target/ . 

If your Maven installation hasn't been used before, it'll download a LOT of
additional maven plugins. Don't stress, this is normal on first use.

Once the build has finished, copy
target/PgClientCertDemo-1.0-SNAPSHOT-jar-with-dependencies.jar to give it a bit
more of a sensible name.
