Re: Query related to jdbc 42.2.5 version

Prince Pathria <[email protected]>
Newsgroups gmane.comp.db.postgresql.jdbc
Message-ID <CAON0DazpAPFjzHehz-2o9aG1YgUJHrRYyGwRnGJnsJQAZb30dw@mail.gmail.com>
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 <[email protected]> wrote:

> Yes, we use them in all the tests.
>
> Dave Cramer
>
> [email protected]
> www.postgresintl.com
>
>
> On Tue, 25 Sep 2018 at 10:28, pradeep puppala <[email protected]>
> 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
>>
>
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.