🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
1 messages
1 total messages Started by Alexey Immoreev Thu, 19 Nov 2026 10:00
Bug#1154446: ca-certificates: drop stale CRTs on rebuild
#5069
Author: Alexey Immoreev
Date: Thu, 19 Nov 2026 10:00
75 lines
4015 bytes
--===============8317183609264631861==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit

Source: ca-certificates
Version: 20260816+nmu1
Severity: normal
Tags: patch

Hello,

Rebuilding the Mozilla certificate set in an existing ca-certificates
source tree can retain certificates removed from the input set.
certdata2pem.py leaves old CRTs in place and writes a _2 variant when
the normal filename already exists.

To reproduce in a disposable extraction of the 20260816+nmu1 source:

  make -C mozilla all
  printf '\n"ISRG Root X1"\n' >> mozilla/blacklist.txt
  make -C mozilla all

The test-only blacklist edit simulates removing one root. Expected: 119
CRT files, with ISRG_Root_X1.crt gone. Observed: 238 CRTs (up from 120),
with ISRG_Root_X1.crt still present. With the attached patch, the repeated
build produced exactly the same 119 filenames and SHA-256 hashes as a
clean build with the changed blacklist. Tested the Debian source with
Python 3.14.4 and cryptography 46.0.5; no system trust store was modified.

The patch only clears generated outputs in mozilla/ before invoking the
converter. It does not change the source trust policy or installation.
The OpenWrt PR also addresses its separate private staging directory;
that downstream change is not part of this patch:
https://github.com/openwrt/openwrt/pull/26790

Bug discovery was LLM-assisted. A human reviewed the patch and
authorized its submission.

Thanks,
Alexey

--===============8317183609264631861==
Content-Type: text/x-patch; charset="utf-8"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="mozilla-remove-stale-generated-certificates.patch"
MIME-Version: 1.0

From 99277872bdc1495453458493affed7111307c825 Mon Sep 17 00:00:00 2001
From: Alexey Immoreev <github@luixo.me>
Date: Wed, 18 Nov 2026 18:48:12 +0000
Subject: [PATCH] mozilla: remove stale generated certificates before
 conversion

certdata2pem.py does not remove obsolete files and creates a _2 variant
when a certificate output name already exists. Clear previous generated
output before invoking the converter.

Signed-off-by: Alexey Immoreev <github@luixo.me>
---
 mozilla/Makefile | 1 +
 1 file changed, 1 insertion(+)

--- a/mozilla/Makefile
+++ b/mozilla/Makefile
@@ -3,6 +3,7 @@
 #
 
 all:
+	rm -f -- *.crt
 	python3 certdata2pem.py
 
 clean:

--===============8317183609264631861==--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads