pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Ravi Krishna <srkrishna@usa.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: New behavior with JDBC 42.2.5
Date: Fri, 21 Sep 2018 15:27:09 -0700
Message-ID: <36f554cb-d8c2-5ebc-7f6d-0080effbae4e@aklaver.com> (raw)
In-Reply-To: <trinity-cc97ba76-0fee-4a21-8a9f-0e152702b959-1537549924412@3c-app-mailcom-lxa07>
References: <CAJCZko++xfddUpwC34FwPRvoK_9mEBecYY2eKUyvHnqNanND5w@mail.gmail.com>
	<CAJCZko+ZJQGZ=R43VwBAhCigm_L+abMNk3H_sXv9hWOQZOBOUg@mail.gmail.com>
	<CAJCZkoJE5=LjNrSwN_jbE=3J7mMDnNQneSKtxKNyrX=TKOy8SA@mail.gmail.com>
	<b67da906-d4dc-72c9-247e-576c934ce174@a-kretschmer.de>
	<CAJCZkoJr_ro=w8OMq8Ge0vZY8u4tggOG+U35Tisz67Y+qLosvg@mail.gmail.com>
	<CAJCZko+bB03wvLGVLJ3-JWUqaUWyKeZ5M2z=iLLHjOtJ_oQXQQ@mail.gmail.com>
	<CAJCZkoL63tYMBDwO-xaTqjDJ5ZzyCsz4zj-87DQ1vucMEmBxZQ@mail.gmail.com>
	<CAF-3MvOyLi55OOxoMAkvc998Bz20+XzWZXxPBHy-5Xa6n1m2vg@mail.gmail.com>
	<CAJCZkoKEbkeitrTDLBomioEaA_R843c4XRxOjEATe27yjEh_2w@mail.gmail.com>
	<CAJCZkoKnRJ+NrvTS0A5UUnJ1OY5-LJOWcgAeJ9Uef6x8WMCfiw@mail.gmail.com>
	<d42b255d-a758-437b-ed4b-e86d77b6af9f@a-kretschmer.de>
	<CAJCZkoLuCYJ37kS4Z=6+XFd9qMY4ZcEnLiRZUZVsPq=eeCqOaA@mail.gmail.com>
	<ef43454b-00e1-255a-08be-32f9de50b6c0@a-kretschmer.de>
	<trinity-cc97ba76-0fee-4a21-8a9f-0e152702b959-1537549924412@3c-app-mailcom-lxa07>

On 9/21/18 10:12 AM, Ravi Krishna wrote:
> We recently upgraded our JDBC driver to 42.2.5 after seeing this
> https://www.postgresql.org/about/news/1883/
> 
> All of our PG databases mandates SSL connections.  So the first line in pg_hba.conf is
> 
> hostnossl all all all reject
> 
> We use dbeaver and while setting up connection we check box SSL (require).
> Attempt to connect without that checked would result in the following error
> "pg_hba.conf rejected the connection: SSL off"
> 
> With the JDBC version listed in the subject, we are finding that we can connect
> to the database even without checking SSL.  Is that expected with this version of
> JDBC. Does it automatically make the connection an SSL one?  Otherwise it is hard
> to see PG allowing that connection to pass.

First are doing a socket connection or a host connection? Socket 
connections ignore sslmode.

Second what happens if you do some version of this?:

psql postgresql://localhost:5432/test?sslmode=require


psql postgresql://localhost:5432/test?sslmode=disable

> 
> thanks
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (5+ messages)  latest in thread

Message-ID: <36f554cb-d8c2-5ebc-7f6d-0080effbae4e@aklaver.com>
Permalink:  ../36f554cb-d8c2-5ebc-7f6d-0080effbae4e@aklaver.com/
Also on:    postgresql.org/message-id/36f554cb-d8c2-5ebc-7f6d-0080effbae4e@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, srkrishna@usa.com
  Subject: Re: New behavior with JDBC 42.2.5
  In-Reply-To: <36f554cb-d8c2-5ebc-7f6d-0080effbae4e@aklaver.com>
  References: <CAJCZko++xfddUpwC34FwPRvoK_9mEBecYY2eKUyvHnqNanND5w@mail.gmail.com> <CAJCZkoJE5=LjNrSwN_jbE=3J7mMDnNQneSKtxKNyrX=TKOy8SA@mail.gmail.com> <b67da906-d4dc-72c9-247e-576c934ce174@a-kretschmer.de> <CAJCZkoJr_ro=w8OMq8Ge0vZY8u4tggOG+U35Tisz67Y+qLosvg@mail.gmail.com> <CAJCZko+bB03wvLGVLJ3-JWUqaUWyKeZ5M2z=iLLHjOtJ_oQXQQ@mail.gmail.com> <CAJCZkoL63tYMBDwO-xaTqjDJ5ZzyCsz4zj-87DQ1vucMEmBxZQ@mail.gmail.com> <CAF-3MvOyLi55OOxoMAkvc998Bz20+XzWZXxPBHy-5Xa6n1m2vg@mail.gmail.com> <CAJCZkoKEbkeitrTDLBomioEaA_R843c4XRxOjEATe27yjEh_2w@mail.gmail.com> <CAJCZkoKnRJ+NrvTS0A5UUnJ1OY5-LJOWcgAeJ9Uef6x8WMCfiw@mail.gmail.com> <d42b255d-a758-437b-ed4b-e86d77b6af9f@a-kretschmer.de> <CAJCZkoLuCYJ37kS4Z=6+XFd9qMY4ZcEnLiRZUZVsPq=eeCqOaA@mail.gmail.com> <ef43454b-00e1-255a-08be-32f9de50b6c0@a-kretschmer.de> <trinity-cc97ba76-0fee-4a21-8a9f-0e152702b959-1537549924412@3c-app-mailcom-lxa07> <36f554cb-d8c2-5ebc-7f6d-0080effbae4e@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox