Re: [HACKERS] [GENERAL] Connection to PostgreSQL Using Certificate: Wrong Permissions on Private Key File

2008-03-31 Thread korry
Now libpq doesn't have any provision for DETAIL or HINT in its locally-generated messages at the moment, so we can't just duplicate the backend message, but we could do something like this example from elsewhere in libpq: if (stat_buf.st_mode (S_IRWXG | S_IRWXO)) {

Re: [HACKERS] [GENERAL] Connection to PostgreSQL Using Certificate: Wrong Permissions on Private Key File

2008-03-31 Thread Tom Lane
korry [EMAIL PROTECTED] writes: Hmmm... I'm not crazy about libpq printing error messages to stderr. Me neither, feel free to submit a patch. The basic problem here is that the obvious fix involves feeding the message to a PQnoticeProcessor callback, but these messages occur during connection

Re: [HACKERS] [GENERAL] Connection to PostgreSQL Using Certificate: Wrong Permissions on Private Key File

2008-03-30 Thread Tom Lane
Kevin Hunter [EMAIL PROTECTED] writes: At 3:50p -0400 on Sat, 29 Mar 2008, Tom Lane wrote: The code appears to want 700 and ownership equal to that of the process executing libpq, ie, the apache server. I just checked the 8.3 documentation and didn't see any mention of the private key file