Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v6sJs-00B8xG-H9 for pgsql-pkg-debian@arkaria.postgresql.org; Thu, 09 Oct 2025 15:12:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1v6sJp-005ySd-5h for pgsql-pkg-debian@arkaria.postgresql.org; Thu, 09 Oct 2025 15:12:38 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v6sJo-005yRK-Vm for pgsql-pkg-debian@lists.postgresql.org; Thu, 09 Oct 2025 15:12:37 +0000 Received: from mout-p-201.mailbox.org ([80.241.56.171]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1v6sJm-000sNn-2Q for pgsql-pkg-debian@lists.postgresql.org; Thu, 09 Oct 2025 15:12:36 +0000 Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4cjCzL1L47z9tDP; Thu, 9 Oct 2025 17:12:30 +0200 (CEST) Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of cb@df7cb.de designates 2001:67c:2050:b231:465::202 as permitted sender) smtp.mailfrom=cb@df7cb.de Date: Thu, 9 Oct 2025 17:12:29 +0200 From: Christoph Berg To: Peter Eisentraut Cc: PostgreSQL on Debian and Ubuntu Subject: Re: should postgresql-common depend on ca-certificates? Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4cjCzL1L47z9tDP List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Re: Peter Eisentraut > Certificate verification failed: The certificate is NOT trusted. The > certificate issuer is unknown. Could not handshake: Error in the > certificate verification. [IP: 151.101.3.52 443] > W: https://apt.postgresql.org/pub/repos/apt/dists/noble-pgdg/InRelease: No > system certificates available. Try installing ca-certificates. Good point, thanks for bringing this up. > I don't know what the right solution is, but maybe a combination of > > 1) postgresql-common at least "suggests" ca-certificates. In my view, the apt.postgresql.org.sh script is just a side-feature of that package, so adding a ca-certificates dependency would be wrong. And recommends/suggests don't really solve the problem. > 2) apt.postgresql.org.sh should do more checking that the setup it creates > actually works. Maybe. Otoh people (or CI setups) might run the script, and do the package installation later. I'd also wouldn't quite know what to check there, except for running `apt update` which it is already doing. > 3) The wiki page quickstart makes more explicit mention of ca-certificates. > (It is mentioned for the manual setup.) I added "ca-certificates" to the TL;DR recipe. That makes it less crisp, but now it's guaranteed to work. Christoph