Re: Difference between host, hostssl and hostnossl connection type

From: Dhirendra Singh <dhirendraks(at)gmail(dot)com>
To: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Difference between host, hostssl and hostnossl connection type
Date: 2022-11-25 07:27:29
Message-ID: CAEyh4sYsxjf+BC06MzFKxzZeijBsD9vyiZGEha+r01sWNSvVBQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

But if i provide cert authentication in host type and provide certificates
then it should work.no ?
Otherwise the documentation is not clear about this limitation.

Thanks,
Dhirendra.

On Fri, Nov 25, 2022 at 12:39 PM Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
wrote:

> On Fri, 2022-11-25 at 10:51 +0530, Dhirendra Singh wrote:
> > I am using postgres version 14.
> > I would like to know what is the difference between host, hostssl and
> hostnossl connection type.
> > According to documentation,
> > host => This record matches connection attempts made using TCP/IP. host
> records match SSL or non-SSL
> > connection attempts as well as GSSAPI encrypted or non-GSSAPI
> encrypted connection
> > attempts.
> > hostssl => This record matches connection attempts made using TCP/IP,
> but only when the connection
> > is made with SSL encryption.
> > hostnossl => This record type has the opposite behavior of hostssl; it
> only matches connection
> > attempts made over TCP/IP that do not use SSL.
> >
> > I provided cert authentication method for host type connection. but i
> get error and postgres
> > does not come up. Following is the error message i get.
> > LOG: cert authentication is only supported on hostssl connections.
>
> "cert" authentication is authentication with SSL (TLS) certificates.
> You cannot use that authentication without SSL. That is why you have to
> use "hostssl".
>
> Yours,
> Laurenz Albe
>

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Laurenz Albe 2022-11-25 07:44:51 Re: Difference between host, hostssl and hostnossl connection type
Previous Message Nikhil Ingale 2022-11-25 07:18:33 Disable unique constraint in Postgres