Re: ssl connection issues
От | zloster |
---|---|
Тема | Re: ssl connection issues |
Дата | |
Msg-id | 652173d1-71e1-68c1-54f5-958dc7a845e8@edno.moe обсуждение исходный текст |
Ответ на | Re: ssl connection issues (Dave Cramer <pg@fastcrypt.com>) |
Ответы |
Re: ssl connection issues
|
Список | pgsql-jdbc |
On 18.09.2018 18:27, Dave Cramer wrote:
Hi to all,On Tue, 18 Sep 2018 at 11:23, Gabriele Bulfon <gbulfon@sonicle.com> wrote:The only server cert known to me that is needed to the client is the root.crt (the ca cert) of the server used to sign the client cert.These three files are all that is needed to the odbc driver, to the native navicat dll connection, and to any other certs-based ssl connection such as openvpn.Actually the jdbc code is not complaining about the certs (if I remove any of them it will complain), something is going wrong during the ssl handshake that I cannot understand.Is there any way to log more stuff on the server postgres.log about the ssl handshake?I'm sure there is but I don't know how. The server is not my domain.Try connecting with psql. If you can connect with that then JDBC should be able to connect.
IMO it will be better to inspect the SSL/TLS handshake at the client - the machine that is initiating the connection to the PostgreSQL server through the JDBC driver.
Here are some links with the basic stuff about debugging the SSL/TLS connections with the JVM:
- https://blogs.oracle.com/java-platform-group/diagnosing-tls,-ssl,-and-https - this is an introduction document. It points to the following two pages. The first is describing what debug tools are available and the second shows how to read the debug output:
- https://access.redhat.com/solutions/973783 - same as the above but in Q&A style
Best regards,
zloster
В списке pgsql-jdbc по дате отправления: