Re: ssl connection issues

From: Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com>
To: gbulfon(at)sonicle(dot)com
Cc: pgsql-jdbc(at)lists(dot)postgresql(dot)org
Subject: Re: ssl connection issues
Date: 2018-09-13 13:33:59
Message-ID: CAB=Je-GBXFrmkLYY2fkzBfpXTCGR6P9PPk74pdJ-6n+orWjyGg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

>Last I tried with jdbc, thinking it would have been so easy: I'm fighting
for 2 days with lots of different issues.

Which pgjdbc version are you using?

>it would look for a pk8 file (why this difference?).

I've no idea.

>sslfactory=org.postgresql.ssl.jdbc4.LibPQFactory

It is a default, so you might omit that

>ssl=true&sslmode=require

It is a bit misleading, and I would recommend to stick to sslmode. ssl=

>Received fatal alert: decrypt_error

It does look like Java side does not support the cipher.
What was the way to create the server certificate?

Could you please list the output of
openssl x509 -in server.crt -text

?

Vladimir

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2018-09-13 14:52:36 Re: ssl connection issues
Previous Message Gabriele Bulfon 2018-09-13 12:23:45 ssl connection issues