Re: ssl connection issues

Dave Cramer <[email protected]>
Newsgroups gmane.comp.db.postgresql.jdbc
Message-ID <CADK3HHL4g+ASCgoPYCVhu5uBP0RRCO1k5zC7NVH=QMKXgGEy5A@mail.gmail.com>
On Thu, 13 Sep 2018 at 09:34, Vladimir Sitnikov <[email protected]>
wrote:

> >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.
>
As far as I know Java requires a pk8 file

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

Dave Cramer

[email protected]
www.postgresintl.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.