pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedCould not load server certificate file "server.crt": No such file or directory.
3+ messages / 2 participants
[nested] [flat]
* Could not load server certificate file "server.crt": No such file or directory.
@ 2022-08-12 17:02 howardnews@selestial.com
0 siblings, 1 reply; 3+ messages in thread
From: howardnews@selestial.com @ 2022-08-12 17:02 UTC (permalink / raw)
To: Pgsql General <pgsql-general@lists.postgresql.org>
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?
Thanks,
Howard.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Could not load server certificate file "server.crt": No such file or directory.
@ 2022-08-12 17:09 Adrian Klaver <adrian.klaver@aklaver.com>
parent: howardnews@selestial.com
0 siblings, 1 reply; 3+ messages in thread
From: Adrian Klaver @ 2022-08-12 17:09 UTC (permalink / raw)
To: howardnews@selestial.com, Pgsql General <pgsql-general@lists.postgresql.org>
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Could not load server certificate file "server.crt": No such file or directory.
@ 2022-08-12 17:53 howardnews@selestial.com
parent: Adrian Klaver <adrian.klaver@aklaver.com>
0 siblings, 0 replies; 3+ messages in thread
From: howardnews@selestial.com @ 2022-08-12 17:53 UTC (permalink / raw)
To: Adrian Klaver <adrian.klaver@aklaver.com>; +Cc: Pgsql General <pgsql-general@lists.postgresql.org>
>
> 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
>
You were right. Many thanks
Howard.
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2022-08-12 17:53 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-08-12 17:02 Could not load server certificate file "server.crt": No such file or directory. howardnews@selestial.com
2022-08-12 17:09 ` Adrian Klaver <adrian.klaver@aklaver.com>
2022-08-12 17:53 ` howardnews@selestial.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