Re: SSL for JDBC
| От | Takeo Shibata |
|---|---|
| Тема | Re: SSL for JDBC |
| Дата | |
| Msg-id | DNEKLICCHCKABMLJENDEIEPDCMAA.shibata@areabe.com обсуждение исходный текст |
| Ответ на | Re: SSL for JDBC (Oleg Samoylov <olleg@jane.telecom.mipt.ru>) |
| Список | pgsql-jdbc |
Hi Oleg and all Thank you for those helpful information. With simply replacing the driver and make the selfsigned certificate to be trusted by keytool, it works fine for ssl connection to postgresql. One thing I found is that if postgresql does not accept SSL connection and the URL used the ?USESSL=force as described in API manual as following. It does not throw the proper exception. It just keep trying and waiting and finaly throw "OutOfMemoryError" in the method main where main has the connection to the database.. Is there any way to set the tiomeout for the database connection with this driver? Thank you Takeo +++++++++++ USESSL public static final String USESSLTry to establish SSL secured connection. When this property is set, the driver tries to establish an SSL secured connection to the backend. For this to work the backend has to be compiled with SSL, and the driver has to be compiled with JSSE. If the property's value is set to "force", an Exception will be thrown if the SSL secured connection cannot be established. Otherwise the driver continues on the unsecured channel. NOTE: Configure Your backend pg_hba.conf appropriately ++++++++++++++ -----Original Message----- From: pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org]On Behalf Of Oleg Samoylov Sent: Thursday, February 20, 2003 5:34 AM To: pgsql-jdbc@postgresql.org Subject: Re: [JDBC] SSL for JDBC Takeo Shibata wrote: > I am wondering if anybody have successfuly connected from JDBC to PostgreSQL > by SSL. > Please help me! Alternative PostgreSQL JDBC driver can connect via SSL. https://sourceforge.net/projects/jxdbcon -- Olleg Samoylov ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to majordomo@postgresql.org so that your message can get through to the mailing list cleanly
В списке pgsql-jdbc по дате отправления: