Обсуждение: Client Certificate authentication using JDBC driver

Поиск
Список
Период
Сортировка

Client Certificate authentication using JDBC driver

От
Brian Thomas
Дата:
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

От
Sehrope Sarkuni
Дата:
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.