🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.maint.boot
Article #89

Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https

#89
From: Max Vozeler
Date: Thu, 29 Oct 2026 22:40
57 lines
4856 bytes
On Thu, Oct 29, 2026 at 08:32:31PM +0000, Steve McIntyre wrote:
> On Thu, Oct 29, 2026 at 09:24:11PM +0100, Pascal Hambourg wrote:
> >[bug mail address fixed]

D'oh! Thanks :)

> >Do you see any case where it might be complicated, inconvenient or impossible
> >to preseed the copying of custom CA certificates ?

Yes. I tested without the copying code in bootstrap-base.postinst:

(a) an https mirror with a certificate signed by a CA included in
ca-certificates. Install completed fine.

(b) an https mirror that needs a custom CA. This worked for
install_base_system but failed in apt_update. It turns copying *is*
required in this case and doing it in late_command is too late.

The reason my preseeding setup worked was precisely because of the
copying - not because of my late_command as I thought.

> >If yes, an option would be for bootstrap-base.postinst to not copy
> >certificates which are provided by ca-certificates-udeb. I guess it would
> >require to ship a list of these certificates or their hashes, either provided
> >by ca-certificates-udeb or generated when building the d-i image.
> 
> Couldn't we just copy those then clear them out as part of the
> post-installation step? Wouldn't that be an easy fix?

How would we identify the certs to be cleared out though? This seems
non-trivial and potentially error prone - or am I just not seeing the
easy solution?

What if we instead mirror what ca-certificates does and require any
custom CA certificates to be in /usr/local/share/ca-certificates in the
installer and then copy that into /target?

Getting the custom certificate into the installer already requires
creating the hash symlink in /etc/ssl/certs manually for lack of openssl
rehash / c_rehash:

d-i preseed/early_command string \
    somehow_create /etc/ssl/certs/XXX.crt; \
    ln -s /etc/ssl/certs/XXX.crt /etc/ssl/certs/HHHHHHHH.0;

Or building the hash symlink into the image itself along with the
certificate. That would be no more difficult if we required the certs to
be in /usr/local/share/ca-certificates:

d-i preseed/early_command string \
    somehow_create /usr/local/share/ca-certificates/XXX.crt; \
    ln -s /usr/local/share/ca-certificates/XXX.crt /etc/ssl/certs/HHHHHHHH.0;

Thoughts?

Best regards,
Max
Technical Details
Message-ID: <NTGWR-8HjI-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod
References: <NR1XP-7chD-9@gated-at.bofh.it> <NR2hb-7cpY-1@gated-at.bofh.it> <NR2Kd-7cOh-7@gated-at.bofh.it> <NThON-8tOy-7@gated-at.bofh.it> <NTAHM-8E4r-7@gated-at.bofh.it> <NR8wh-7geS-1@gated-at.bofh.it> <NTEV3-8GjX-1@gated-at.bofh.it> <NR8wh-7geS-1@gated-at.bofh.it> <NTF4J-8Gnm-9@gated-at.bofh.it> <NR8wh-7geS-1@gated-at.bofh.it> <NTF4J-8Gnm-9@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Max Vozeler <xam@debian.org>
Newsgroups: linux.debian.bugs.dist,linux.debian.maint.boot
Subject: Bug#1151671: DSA 6572-1 may be ineffective for systems installed w/ d-i from https
Date: Thu, 29 Oct 2026 23:40:01 +0100
Message-ID: <NTGWR-8HjI-1@gated-at.bofh.it>
References: <NR1XP-7chD-9@gated-at.bofh.it> <NR2hb-7cpY-1@gated-at.bofh.it> <NR2Kd-7cOh-7@gated-at.bofh.it> <NThON-8tOy-7@gated-at.bofh.it> <NTAHM-8E4r-7@gated-at.bofh.it> <NR8wh-7geS-1@gated-at.bofh.it> <NTEV3-8GjX-1@gated-at.bofh.it> <NR8wh-7geS-1@gated-at.bofh.it> <NTF4J-8Gnm-9@gated-at.bofh.it> <NR8wh-7geS-1@gated-at.bofh.it> <NTF4J-8Gnm-9@gated-at.bofh.it>
X-Original-To: Steve McIntyre <steve@einval.com>, 1151671@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Thu Oct 29 22:37:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.9
Reply-To: Max Vozeler <xam@debian.org>, 1151671@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: debian-boot@lists.debian.org
X-Debian-Pr-Message: followup 1151671
X-Debian-Pr-Package: debian-installer
X-Debian-Pr-Source: debian-installer
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Greylist: delayed 481 seconds by postgrey-1.37 at buxtehude; Thu, 29 Oct 2026 22:34:59 UTC
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1999616
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 57
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: Pascal Hambourg <pascal@plouf.fr.eu.org>
X-Original-Date: Thu, 29 Oct 2026 23:26:54 +0100
X-Original-Message-ID: <auPILqdU_H-bi2VJ@dp.vpn.hinterhof.net>
X-Original-References: <atobRTV0o-y-Hz7g@dp.vpn.hinterhof.net> <20261022143425.GA6571@mraw.org> <20261022150315.GB6571@mraw.org> <auJQQS61epHxZ4QJ@dp.vpn.hinterhof.net> <20261029155147.GA3481@mraw.org> <atp-HCgA7n5xKZmL@layer-acht.org> <fe925189-5868-4848-b282-fe1c8e075af6@plouf.fr.eu.org> <atp-HCgA7n5xKZmL@layer-acht.org> <20261029203231.GO1683859@tack.einval.com> <atp-HCgA7n5xKZmL@layer-acht.org> <20261029203231.GO1683859@tack.einval.com>