pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Client Certificate authentication using JDBC driver
2+ messages / 2 participants
[nested] [flat]

* Client Certificate authentication using JDBC driver
@ 2013-09-05 14:51  Brian Thomas <mynameisbt@hotmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Brian Thomas @ 2013-09-05 14:51 UTC (permalink / raw)
  To: pgsql-jdbc

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?
 		 	   		  =

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Client Certificate authentication using JDBC driver
@ 2013-09-05 16:37  Sehrope Sarkuni <sehrope@jackdb.com>
  parent: Brian Thomas <mynameisbt@hotmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Sehrope Sarkuni @ 2013-09-05 16:37 UTC (permalink / raw)
  To: Brian Thomas <mynameisbt@hotmail.com>; +Cc: pgsql-jdbc

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.

[1]: https://github.com/pgjdbc/pgjdbc/blob/master/org/postgresql/ssl/jdbc4/LibPQFactory.java

Regards,
Sehrope Sarkuni
Founder & CEO | JackDB, Inc. | http://www.jackdb.com/=

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2013-09-05 16:37 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-09-05 14:51 Client Certificate authentication using JDBC driver Brian Thomas <mynameisbt@hotmail.com>
2013-09-05 16:37 ` Sehrope Sarkuni <sehrope@jackdb.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox