Thread: Client Certificate authentication using JDBC driver

Client Certificate authentication using JDBC driver

From
Brian Thomas
Date:
I am trying to connect to a postgres database that requires client to provide a certificate to authenticate instead of username/password.  How can I configure the Postgres 9.2 driver to authenticate with a certificate instead of username, password?

Re: Client Certificate authentication using JDBC driver

From
Sehrope Sarkuni
Date:
Check out the LibPQFactory[1]. I haven't used it myself (only looked over the code when writing another SSL factory) but it's supposed to handle using client certificates for auth. It's meant to mimic the behavior of the libpq library and generally accepts the same defaults for flags/cert locations.