Thread View: linux.debian.bugs.dist
1 messages
1 total messages
Started by Sebastian Andrzej Siewior
Sun, 29 Nov 2026 16:10
Bug#1155781: pcaff: FTBFS with openssl 4.0
Author: 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--
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