Public bug reported:
In the current version, find_pem_files() in the ca-certificates-java postinst
resolves the links in /etc/ssl/certs with "readlink -f", i.e. it follows
the whole symlink chain. A local certificate installed as a symlink in
/usr/local/share/ca-certificates that points to a file elsewhere therefore
resolves to its final target, matches neither /usr/share/ca-certificates
nor /usr/local/share/ca-certificates, and is excluded. On a fresh rebuild
its alias is then removed from the Java keystore.
The change adding -f to `readlink` happened in commit
853ed91e89587f3c22046f2b47258c31ef2f7f11
update-ca-certificates itself still accepts such a link: the certificate
stays in /etc/ssl/certs and in ca-certificates.crt. Only the Java keystore
silently loses it, so the system bundle and the Java keystore disagree.
The certificate is added normally by an incremental update (the pending
list is not filtered), so the problem only shows up at the next fresh
rebuild, e.g. after a ca-certificates upgrade or "update-ca-certificates -f".
On our server this happened through unattended-upgrades on 2026-11-07,
when ca-certificates 20260816ubuntu0.26.04.2 and ca-certificates-java
20260311ubuntu0.26.04.1 were installed. The apt log shows:
Removing debian:auth.meet.example.org.pem
Steps to reproduce:
openssl req -x509 -newkey rsa:2048 -nodes -days 1 \
-subj /CN=test-local -keyout /var/tmp/test.key -out /var/tmp/test.crt
ln -s /var/tmp/test.crt /usr/local/share/ca-certificates/test-local.crt
update-ca-certificates
keytool -list -cacerts -storepass changeit | grep -i test-local # present
update-ca-certificates -f
keytool -list -cacerts -storepass changeit | grep -i test-local # gone
Expected: the certificate stays in the Java keystore, consistent with
ca-certificates.crt.
Real-world impact: Jitsi Meet installs Prosody's self-signed certificate
as /usr/local/share/ca-certificates/<host>.crt -> /var/lib/prosody/<host>.crt.
After the first fresh rebuild with this version, the Java components
(jitsi-videobridge, jicofo) fail.
ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: ca-certificates-java 20260311ubuntu0.26.04.1
ProcVersionSignature: Ubuntu 7.0.0-42.42-generic 7.0.14
Uname: Linux 7.0.0-42-generic x86_64
ApportVersion: 2.34.1-0ubuntu0.1
Architecture: amd64
CasperMD5CheckResult: unknown
CloudArchitecture: x86_64
CloudID: hetzner
CloudName: hetzner
CloudPlatform: hetzner
CloudSubPlatform: unknown
Date: Mon Nov 9 12:42:51 2026
PackageArchitecture: all
ProcEnviron:
LANG=en_US.UTF-8
LC_CTYPE=UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=tmux-256color
SourcePackage: ca-certificates-java
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: ca-certificates-java (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug resolute
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2173747
Title:
fresh rebuild drops local CA certificates that are symlinks to files
outside /usr/local/share/ca-certificates
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ca-certificates-java/+bug/2173747/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs