Article View: linux.debian.bugs.dist
Article #6736Bug#1155781: pcaff: FTBFS with openssl 4.0
From: Sebastian Andrzej Siewior
Date: Sun, 29 Nov 2026 16:10
Date: Sun, 29 Nov 2026 16:10
96 lines
5856 bytes
5856 bytes
--n4oJn8+niOALHysf
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Package: pcaff
Version: 0.2.2-1
Severity: important
Tags: sid patch
control: affects -1 src:openssl
User: pkg-openssl-devel@lists.alioth.debian.org
Usertags: openssl-4.0
OpenSSL 4.0 is in experimental. This package fails to build against it:
| =================================== FAILURES ===================================
| _____________ test_send_smtps_delivers_over_a_verified_connection ______________
|
| run_control = <function run_control.<locals>.run at 0xf665eb80>
| message_factory = <function message_factory.<locals>.make at 0xf665ed90>
| deliver_to_maildir = <function deliver_to_maildir.<locals>.deliver at 0xf665e8c0>
| operator_home = PosixPath('/tmp/pytest-of-test/pytest-1/test_send_smtps_delivers_over_0/home')
| tls_certs = {'ca': {'cert': PosixPath('/tmp/pytest-of-test/pytest-1/test_send_smtps_delivers_over_0/tls-certs/ca.pem'), 'key': Pos...e.pem'), 'key': PosixPath('/tmp/pytest-of-test/pytest-1/test_send_smtps_delivers_over_0/tls-certs/wrongname-key.pem')}}
| smtp_tls_server = <function smtp_tls_server.<locals>.start at 0xf665ece0>
| monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0xf6684fb8>
|
| def test_send_smtps_delivers_over_a_verified_connection(
| run_control,
| message_factory,
| deliver_to_maildir,
| operator_home,
| tls_certs,
| smtp_tls_server,
| monkeypatch,
| ) -> None:
| """Positive control: with a CA-signed certificate valid for the
| connected hostname and the CA trusted via SSL_CERT_FILE, the
| verified SMTPS connection delivers and authenticates -- the
| verification must not break legitimate TLS delivery. certificate:
| full pins this to plain TLS verification; the tofu default has
| its own positive-control test below."""
| monkeypatch.setenv("SSL_CERT_FILE", str(tls_certs["ca"]["cert"]))
| server = smtp_tls_server(
| "smtps", tls_certs["localhost"]["cert"], tls_certs["localhost"]["key"]
| )
| config_dir = operator_home / ".pcaff"
| config_dir.mkdir(exist_ok=True)
| (config_dir / "control.yaml").write_text(
| "smtp:\n"
| f" host: 127.0.0.1\n"
| f" port: {server.port}\n"
| " security: smtps\n"
| " certificate: full\n"
| " auth: true\n"
| " username: robot@example.org\n"
| " password: secret\n"
| )
| transaction = Transaction.create(config_dir)
| _seed(
| deliver_to_maildir,
| transaction,
| "FINGERPRINT.alice@example.org",
| message_factory(recipient="alice@example.org", subject="A", body="one"),
| )
|
| result = run_control("send", str(transaction.path))
|
| > assert result.returncode == 0, result.stderr
| E AssertionError: pcaff-control: error: could not establish SMTP connection: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Missing Authority Key Identifier (_ssl.c:1130)
| E
| E assert 1 == 0
| E + where 1 = CommandResult(returncode=1, stdout='', stderr='pcaff-control: error: could not establish SMTP connection: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Missing Authority Key Identifier (_ssl.c:1130)\n').returncode
|
| tests/test_send.py:292: AssertionError
| _____________ test_send_certificate_file_trusts_only_the_given_ca ______________
The reason is that the newer openssl command no longer includes
authorityKeyIdentifier by default. The patch attached does the trick.
Sebastian
--n4oJn8+niOALHysf
Content-Type: text/x-diff; charset=utf-8
Content-Disposition: attachment; filename=pcaff_openssl4.patch
--- pcaff-0.2.2/tests/conftest.py 2026-10-27 20:41:03.000000000 +0100
+++ pcaff-0.2.2.fixed/tests/conftest.py 2026-11-29 16:54:02.540238175 +0100
@@ -774,6 +774,7 @@
"ca", "pcaff test CA",
"basicConstraints=critical,CA:TRUE",
"keyUsage=critical,keyCertSign,cRLSign",
+ "authorityKeyIdentifier=keyid,issuer",
),
"selfsigned": self_signed(
"selfsigned", "localhost",
--n4oJn8+niOALHysf--
Technical Details
Message-ID:
<O4PDs-eUPx-37@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Newsgroups: linux.debian.bugs.dist Subject: Bug#1155781: pcaff: FTBFS with openssl 4.0 Date: Sun, 29 Nov 2026 17:10:02 +0100 Message-ID: <O4PDs-eUPx-37@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Sun Nov 29 16:03:07 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.451 Reply-To: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>, 1155781@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: pkg-openssl-devel@alioth-lists.debian.net, pcaff@packages.debian.org X-Debian-Pr-Message: report 1155781 X-Debian-Pr-Package: pcaff X-Debian-Pr-Keywords: patch sid X-Debian-Pr-Source: pcaff MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="n4oJn8+niOALHysf" Content-Disposition: inline X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2005877 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 96 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sun, 29 Nov 2026 17:01:25 +0100 X-Original-Message-ID: <20261129160125.usoPlGZp@breakpoint.cc>