pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedCan I disable sslcert/sslkey in pg_service.conf?
2+ messages / 2 participants
[nested] [flat]
* Can I disable sslcert/sslkey in pg_service.conf?
@ 2018-06-14 19:06 George Woodring <george.woodring@iglass.net>
0 siblings, 1 reply; 2+ messages in thread
From: George Woodring @ 2018-06-14 19:06 UTC (permalink / raw)
To: pgsql-general
We currently use pg_service.conf and certificates to log into our
databases. Users have their own ~/.postgresql/postgresql.[crt|key] and
everything is happy.
We are testing a cloud based postgres which is requiring password based
authentication, however our existing certificates are causing the cloud
server to reject SSL connections.
[woodring@ibeam]$ psql -U woodring -h host1 "dbname=mydb sslmode=require"
psql: SSL error: tlsv1 alert unknown ca
I can make it work from the command line:
[woodring@ibeam]$ psql -U woodring -h host1 "dbname=mydb sslmode=require
sslcert= sslkey="
Password for user woodring:
psql (9.5.13, server 9.6.3)
WARNING: psql major version 9.5, server major version 9.6.
Some psql features might not work.
SSL connection (protocol: TLSv1.2, cipher: DHE-RSA-AES256-GCM-SHA384, bits:
256, compression: off)
Type "help" for help.
mydb=> \q
If I put the blanks into pg_service.conf:
[mydb]
dbname=mydb
host=host1
sslmode=require
sslcert=
sslkey=
It does not work.
[woodring@ibeam]$ PGSERVICE=mydb psql
psql: SSL error: tlsv1 alert unknown ca
I tried the opposite of moving the .postgresql directory to a different
name and putting a hard coded certificate path in pg_service, but it looks
to have its own sets of challenges.
Thanks for any suggestions.
George Woodring
iGLASS Networks
www.iglass.net
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Can I disable sslcert/sslkey in pg_service.conf?
@ 2018-06-15 04:02 Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
parent: George Woodring <george.woodring@iglass.net>
0 siblings, 0 replies; 2+ messages in thread
From: Peter Eisentraut @ 2018-06-15 04:02 UTC (permalink / raw)
To: George Woodring <george.woodring@iglass.net>; pgsql-general
On 6/14/18 15:06, George Woodring wrote:
> If I put the blanks into pg_service.conf:
>
> [mydb]
> dbname=mydb
> host=host1
> sslmode=require
> sslcert=
> sslkey=
>
> It does not work.
I can believe that.
> [woodring@ibeam]$ PGSERVICE=mydb psql
> psql: SSL error: tlsv1 alert unknown ca
>
> I tried the opposite of moving the .postgresql directory to a different
> name and putting a hard coded certificate path in pg_service, but it
> looks to have its own sets of challenges.
I think that's probably the best way out, though.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-06-15 04:02 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-06-14 19:06 Can I disable sslcert/sslkey in pg_service.conf? George Woodring <george.woodring@iglass.net>
2018-06-15 04:02 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
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