#1112125 apt-transport-https: Regression in CAInfo handling in Trixie

#1112125#5
Date:
2025-08-26 16:48:33 UTC
From:
To:
Hello,

there seems to be a regression in Trixie (probably since the switch
to OpenSSL) in the CAInfo handling.

I created a reproducer here:
https://salsa.debian.org/gjasny-guest/debian-apt-cafile

Copy for the archive:
---
FROM debian:13
ENV DEBIAN_FRONTEND=noninteractive
RUN sed -i'' -e 's,http://deb.debian.org,https://debian.inf.tu-dresden.de,g' /etc/apt/sources.list.d/debian.sources
ADD rootca.pem /etc/rootca.pem
RUN echo 'Acquire::https::debian.inf.tu-dresden.de::CAInfo "/etc/rootca.pem";' > /etc/apt/apt.conf.d/99-root-ca
RUN apt-get update
RUN apt-get install -y ca-certificates
---

It works with Debian 12 and fails with Debian 13. (I need that functionality
for a company internal APT repository, not debian.inf.tu-dresden.de.)

Could please take a look what's happening?

Thanks,
Gregor

#1112125#10
Date:
2025-08-26 18:57:55 UTC
From:
To:
The file is being loaded by SSL_CTX_load_verify_file(), the rest is
OpenSSL's doing. I do not have further information.

Please note that we generally do not ship stable updates for APT,
so any fix will only be available in Debian 14 - please test your
use cases before a release to ensure you can use the next release.

(release team approval for stable updates is hard to get)

#1112125#15
Date:
2025-08-29 16:11:15 UTC
From:
To:
Hello,

thanks for the link to SSL_CTX_load_verify_file. That made me try plain
"openssl s_client". That way I figured out that the certificate I used
was not the root certificate but the first one that
"openssl s_client -showcerts" shows. With the proper root one it works
in all apt versions.

Thanks,
Gregor