🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
2 messages
2 total messages Started by Sebastian Andrzej Siewior Sat, 07 Nov 2026 23:00
Bug#1152488: [Pkg-openssl-devel] Bug#1152488: openssl: please include a configuration drop-in directory
#3727
Author: Sebastian Andrzej Siewior
Date: Sat, 07 Nov 2026 23:00
12 lines
2704 bytes
On 2026-10-29 18:35:06 [-0300], Daniel Ramos wrote:
> Hello.
> Debian's /etc/ssl/openssl.cnf includes no directory, so a package that ships an OpenSSL provider (openssl-provider-fips, pkcs11-provider, tpm2-openssl, openssl-provider-qat) cannot activate it system-wide without the administrator editing the conffile.
> Would you consider ending the file with `.include /etc/ssl/openssl.cnf.d` and shipping that directory empty?
> In Sparky Stereo OS, a SparkyLinux edition, we ship an Ed521 verification provider for ICP-Brasil's root v7, and today we divert /usr/lib/ssl/openssl.cnf to reach it, which we would rather not do.
> A snippet must also activate the default provider, because activating any provider turns the implicit default off; we can propose the wording and tests.
> Prepared with AI assistance (Claude), reviewed by me.

could you please send a patch what you had in mind?

> Daniel Campos Ramos
Sebastian
Bug#1152488: [Pkg-openssl-devel] Bug#1152488: openssl: please include a configuration drop-in directory
#3784
Author: Sebastian Andrzej Siewior
Date: Sun, 08 Nov 2026 14:50
31 lines
4093 bytes
On 2026-11-07 20:41:31 [-0300], Daniel Ramos wrote:
> Hello Sebastian,
Hi Daniel,

> thank you, the debdiff against 3.6.5-1 is attached.
> 
> It does three things:
> 1. A Debian patch appends `.include /etc/ssl/openssl.cnf.d` to apps/openssl.cnf, with a comment for whoever writes a snippet.
> 2. debian/openssl.dirs ships /etc/ssl/openssl.cnf.d empty.
> 3. A new autopkgtest, drop-in-directory, puts a snippet there that activates the legacy provider, checks that MD4 and SHA-256 work, then removes it and checks that legacy is gone.
> 
> What I measured in a testing container, on 3.6.5-1 and on the built 3.6.5-2:
> - An empty or a missing directory changes nothing, so the copy of openssl.cnf in libcrypto3-udeb is safe.
> - A snippet with `legacy = legacy_sect` in [provider_sect] and `activate = 1` in [default_sect] gives both providers.
> - A snippet that activates legacy alone drops the default provider, which is why the comment asks for `activate = 1` in [default_sect].
> - A snippet that cannot be parsed makes OpenSSL ignore the whole configuration, as a broken openssl.cnf does today.
> - OpenSSL reads the directory in readdir order (OPENSSL_DIR_read in crypto/conf/conf_def.c), so the comment asks snippets not to set the same name.
> - The package builds and its test suite passes (4980 tests).
> - The new test script, run as root, fails on 3.6.5-1 with the directory made by hand and passes after upgrading to 3.6.5-2; the unmodified conffile is replaced on upgrade.
> 
> Fedora ships the same idea as /etc/pki/tls/openssl.d (its openssl.spec creates it and lists it as %dir).
> If you prefer another name or another place for the include, I will change it.

I kept it as-is, doesn't look that bad. Could you forward that upstream?
It looks usefull and I don't think it needs to be limited to Debian.
I picked it for the unstable branch.
	https://salsa.debian.org/debian/openssl/-/jobs/10615896

> Daniel

Sebastian
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