Re: pg13 psql can't connect pg instance with ssl enabled after upgrading

Поиск
Список
Период
Сортировка
От jian xu
Тема Re: pg13 psql can't connect pg instance with ssl enabled after upgrading
Дата
Msg-id DM6PR02MB4572195AA2B97CE77B7892C9A18B9@DM6PR02MB4572.namprd02.prod.outlook.com
обсуждение исходный текст
Ответ на Re: pg13 psql can't connect pg instance with ssl enabled after upgrading  (jian xu <jamesxu@outlook.com>)
Список pgsql-admin
I added "gssencmode=disable" in the client connection string, then psql 13 can login pg13 with ssl connection
postgresql_13_1/bin/psql "sslmode=require host=xxxxxxx dbname=postgres gssencmode=disable"
psql (13.1)
SSL connection (protocol: TLSv1.2, cipher: ECDHE-RSA-AES256-GCM-SHA384, bits: 256, compression: off)
Type "help" for help.

but not sure why pg11 psql can login pg13 without gssencmode=disable
looks like something changes in pg13 about gssencryption. 

can gssencryption be disable on server side? so clients don't need to change connection string anymore. 
or is it fixed in pg13.2? 
thanks
James


From: jian xu <jamesxu@outlook.com>
Sent: Friday, February 12, 2021 18:40
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: pg13 psql can't connect pg instance with ssl enabled after upgrading
 
thanks Tom, may I know if there is a way to disable GSS encryption? and only use ssl encryption?
not sure why it worked on pg11, but not on pg13....
does it mean if we use GSS, we are not able to use ssl encryption on pg13? 
thanks,
James

From: Tom Lane <tgl@sss.pgh.pa.us>
Sent: Friday, February 12, 2021 17:59
To: jian xu <jamesxu@outlook.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: pg13 psql can't connect pg instance with ssl enabled after upgrading
 
jian xu <jamesxu@outlook.com> writes:
> Thanks Tom.  you are right, we are using GSS authentication. and psql version is 13.1
> postgresql_13_1/bin/psql --version
> psql (PostgreSQL) 13.1

Ah.  Then perhaps you want hostgssenc not hostssl in your pg_hba
entries.  But I'd definitely recommend an update to 13.2, as it
fixes a number of GSS bugs besides this one.

                        regards, tom lane

В списке pgsql-admin по дате отправления:

Предыдущее
От: jian xu
Дата:
Сообщение: Re: pg13 psql can't connect pg instance with ssl enabled after upgrading
Следующее
От: Khuram Rafique
Дата:
Сообщение: ODBC error 126