Thread: Query related to jdbc 42.2.5 version

Query related to jdbc 42.2.5 version

From
pradeep puppala
Date:
Hi,

I have a difficulty in connecting to postgresql database with ssl enabled. I am using jdbc version 42.2.5. I am using self signed ssl certificates. Now my doubt is , are self signed certificates allowed by jdbc 42.2.5 for database connections with ssl.

Regards,
Pradeep

Re: Query related to jdbc 42.2.5 version

From
Dave Cramer
Date:
Yes, we use them in all the tests.

On Tue, 25 Sep 2018 at 10:28, pradeep puppala <pradeep09puppala@gmail.com> wrote:
Hi,

I have a difficulty in connecting to postgresql database with ssl enabled. I am using jdbc version 42.2.5. I am using self signed ssl certificates. Now my doubt is , are self signed certificates allowed by jdbc 42.2.5 for database connections with ssl.

Regards,
Pradeep

Re: Query related to jdbc 42.2.5 version

From
Prince Pathria
Date:
Hi Pradeep,

change your jdbc connection line like this

jdbc:postgresql://x.x.x.1:5432,x.x.x.2:5432,x.x.x.3:5432/dbname?targetServerType=preferSlave&loadBalanceHosts=true&sslmode=require

Even I'm using self signed certificate

Prince Pathria Systems Architect Intern Evive +91 9478670472 goevive.com


On Sat, Sep 29, 2018 at 3:59 PM Dave Cramer <pg@fastcrypt.com> wrote:
Yes, we use them in all the tests.

On Tue, 25 Sep 2018 at 10:28, pradeep puppala <pradeep09puppala@gmail.com> wrote:
Hi,

I have a difficulty in connecting to postgresql database with ssl enabled. I am using jdbc version 42.2.5. I am using self signed ssl certificates. Now my doubt is , are self signed certificates allowed by jdbc 42.2.5 for database connections with ssl.

Regards,
Pradeep