Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oMY9w-0005nT-Q8 for pgsql-general@arkaria.postgresql.org; Fri, 12 Aug 2022 17:09:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oMY9v-0001Z6-Gx for pgsql-general@arkaria.postgresql.org; Fri, 12 Aug 2022 17:09:19 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oMY9t-0001HP-S5 for pgsql-general@lists.postgresql.org; Fri, 12 Aug 2022 17:09:19 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oMY9q-0000m8-CF for pgsql-general@lists.postgresql.org; Fri, 12 Aug 2022 17:09:16 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id C66125C0125; Fri, 12 Aug 2022 13:09:12 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 12 Aug 2022 13:09:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1660324152; x= 1660410552; bh=QDP6/rmPxezGSywS8gEg9Pn+RA6lV+k/UlZdnLDk4Ak=; b=k Wsal5qtl2s2iLvFrJmBI3+K6wYaTLNE3mEvZ5FLEO/P5Hhx52T2AEyGQXBv8juUf 0DwJiqz9lSjusMT0PqHmGVOUSBNptBRP7PQPC9N/ZcdeNQh6pU1ZHK6xTj7c19lf u/KH4yBc68kA40aUQ42poduGCzOSzrIz2p4GBpE8uA+1OPoRwHNtrCK72eJSWXKH erYLIu9lyDyJOI0LlMWBqsd6kmHKbwE7w05IDN0A2/uu7vm3lUUv8XvKU22CQ/Ot gJem36Q3hEU7fiTr4uSEPl5S2Iwy7PAv9MUvYL+JDJ3xtPA/kfQkLeHprpzeupEe ju+0P8dcr5PMD0MDE8RAw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1660324152; x=1660410552; bh=Q DP6/rmPxezGSywS8gEg9Pn+RA6lV+k/UlZdnLDk4Ak=; b=u1ERB9TK0BhH5XuxY YIVsRH2gUAtKulgBSs7QMkg4CazP8MeOCw5wxGHUTEetHI/KtjFrbBBgo7V6pYff WSk6vnRkCswkLehm8lbKgaGfODnvJWoIbKIvjPlFNlQhOWBSu7/+ZOv6G1PYMlRd HjPZglBgoDihdYfbZluEBl7qBOO6vdWdd5MqPTbK8yNgv8PEsuy/lgn8Ry40+mRR sPJgTHmaQTVe9fBw3YGMS+Hmt0TBwgaxn4+2gSO7QNu/Tu+CGr29aVLaG8vYJT/r KM1X17NIMSciaqR5j9gdqflHf4zu0cz0szYBmDFYZjao8LVVSqsKGvtSwKcK8q+D CJePQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdegiedguddtlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuggftrfgrthhtvghrnhepuddufeejteevffehgfduhedthfdvteekieeuheef veevudetkeelueehgeduhefhnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrgh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughr ihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 12 Aug 2022 13:09:11 -0400 (EDT) Subject: Re: Could not load server certificate file "server.crt": No such file or directory. To: howardnews@selestial.com, Pgsql General References: <606a30d444aae391f7e88f78a0e4d4a1@selestial.com> From: Adrian Klaver Message-ID: Date: Fri, 12 Aug 2022 10:09:11 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <606a30d444aae391f7e88f78a0e4d4a1@selestial.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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