Re: [HACKERS] Support for Secure Transport SSL library on macOS asOpenSSL alternative - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [HACKERS] Support for Secure Transport SSL library on macOS asOpenSSL alternative
Date
Msg-id 723aa36e-18a4-d942-8221-38b9751effc3@2ndquadrant.com
Whole thread Raw
In response to Re: [HACKERS] Support for Secure Transport SSL library on macOS as OpenSSL alternative  (Daniel Gustafsson <daniel@yesql.se>)
Responses Re: [HACKERS] Support for Secure Transport SSL library on macOS as OpenSSL alternative
List pgsql-hackers
On 1/23/18 14:59, Daniel Gustafsson wrote:
> It’s not specific to the implementation per se, but it increases the likelyhood
> of hitting it.  In order to load certificates from Keychains the cert common
> name must be specified in the connstr, when importing the testfiles into
> keychains I ran into it for example src/test/ssl/client_ca.config.

The change is

- 'psql', '-X', '-A', '-t', '-c', "SELECT 'connected with $connstr'",
+ 'psql', '-X', '-A', '-t', '-c', "SELECT \$\$connected with $connstr\$\$",

So the problem must have been a single quote in the connstr.

That can surely happen, but then so can having a $$.  So without a
concrete example, I'm not sure how to proceed.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: WIP: BRIN multi-range indexes
Next
From: Robert Haas
Date:
Subject: Re: [HACKERS] parallel.c oblivion of worker-startup failures