pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: howardnews@selestial.com, Pgsql General <pgsql-general@lists.postgresql.org>
Subject: Re: Could not load server certificate file "server.crt": No such file or directory.
Date: Fri, 12 Aug 2022 10:09:11 -0700
Message-ID: <e8bc2b97-573a-1dd1-a65e-da076e468260@aklaver.com> (raw)
In-Reply-To: <606a30d444aae391f7e88f78a0e4d4a1@selestial.com>
References: <606a30d444aae391f7e88f78a0e4d4a1@selestial.com>

On 8/12/22 10:02 AM, howardnews@selestial.com wrote:
> Hi,
> 
> Running 14.4.1 on Mac OSX on M1 and found that the postgres daemon had 
> not started. It was running fine previously.
> 
> When I ran the following command line:
> 
> sudo -u postgres /Library/Postgresql/14/bin/postmaster -D 
> /Library/Postgresql/14/data
> 
> I get the following error:
> 
> 2022-08-12 17:47:33.239 BST [896] FATAL:  could not load server 
> certificate file "server.crt": No such file or directory
> 
> Not sure what I have done - but where do I find this file - and can I 
> regenerate it easily?

I am guessing you did from here:

https://www.postgresql.org/docs/current/runtime-config-connection.html#RUNTIME-CONFIG-CONNECTION-SSL

"ssl (boolean)

     Enables SSL connections. This parameter can only be set in the 
postgresql.conf file or on the server command line. The default is off.
"

set ssl on.

Check postgresql.conf to verify. If you don't want SSL on then set to off.

If you want it on and need a certificate see:

https://www.postgresql.org/docs/14/ssl-tcp.html#SSL-CERTIFICATE-CREATION


> 
> Thanks,
> 
> Howard.
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (3+ messages)  latest in thread

Message-ID: <e8bc2b97-573a-1dd1-a65e-da076e468260@aklaver.com>
Permalink:  ../e8bc2b97-573a-1dd1-a65e-da076e468260@aklaver.com/
Also on:    postgresql.org/message-id/e8bc2b97-573a-1dd1-a65e-da076e468260@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com
  Subject: Re: Could not load server certificate file "server.crt": No such file or directory.
  In-Reply-To: <e8bc2b97-573a-1dd1-a65e-da076e468260@aklaver.com>
  References: <606a30d444aae391f7e88f78a0e4d4a1@selestial.com> <e8bc2b97-573a-1dd1-a65e-da076e468260@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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