You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Give access to the CA certificates from the host #626
We need to do something to ensure that the certificates from certificate authorities (or CAs) that are available inside the container are kept synchronized with the host.
Normally, we'd do this by using symbolic links or bind mounts in /etc, but the layout of the files differs quite a bit across distributions. Debian uses /etc/ssl, Fedora uses /etc/pki and has /etc/ssl/certs as a symbolic link to /etc/pki/tls/certs, and so on. It's a mess.
Instead, we might have better luck using p11-kit, just as Flatpak does. p11-kit offers an uniform interface for accessing certificates stored on the file system, smart cards and so on. Normally, p11-kit looks up the certificates that are present on the host's file system. However, it can also be configured to forward all look-ups to a socket, and a p11-kit server ... instance on the other side does the look-ups and returns the results over the socket.
In our case, we need to start a p11-kit server ... instance on the host, configure the container to forward everything to it over the socket, and ensure that the socket is present at the right place.
I have some work-in-progress code to make this work with p11-kit, as discussed above. Meanwhile, #1634 updates the arch-toolbox and ubuntu-toolbox images to include p11-kit-client.so.
I have some work-in-progress code to make this work with p11-kit, as discussed above. Meanwhile, #1634 updates the arch-toolbox and ubuntu-toolbox images to include p11-kit-client.so.
... and it will be updated through the Fedora KIWI descriptions. The UBI based toolbox image for RHEL will hopefully be updated by Red Hat according to their internal processes.
Hi, any update on this? The README now says that toolbox has seamless access to the CA certificates, but testing with curl I can see this is not true. Am I missing something?
Host and container are both Fedora 44, with toolbox-0.3-4.fc44.x86_64.
Activity
cgwalters commentedon Oct 7, 2021
podman-container-tools/podman#2317
images/ubuntu: Add p11-kit-client.so to Ubuntu >= 18.04
.github/workflows, images/ubuntu: Add p11-kit-client.so to newer Ubuntus
.github/workflows, images/ubuntu: Add p11-kit-client.so to newer Ubuntus
images/arch: Avoid losing p11-kit-client.so by accident
debarshiray commentedon May 1, 2025
I have some work-in-progress code to make this work with
p11-kit, as discussed above. Meanwhile, #1634 updates thearch-toolboxandubuntu-toolboximages to includep11-kit-client.so.images/arch: Create the directory for configuring PKCS#11 modules
images/ubuntu: Create the directory for configuring PKCS#11 modules
cmd/root, pkg/utils: Split out the code to acquire a file lock
debarshiray commentedon May 7, 2025
Those images needed some more work: #1643
The bulk of the code changes are beginning to appear at: #1644
The
fedora-toolboximage is loosely blocking on:https://src.fedoraproject.org/rpms/p11-kit/pull-request/53
... and it will be updated through the Fedora KIWI descriptions. The UBI based
toolboximage for RHEL will hopefully be updated by Red Hat according to their internal processes.pkg/utils: Add a function to check if p11-kit-client.so is present
Give access to the CA certificates from the host
Give access to the CA certificates from the host
Give access to the CA certificates from the host
21 remaining items
cmd/initContainer: Unbreak access to CA certificates in sshd(8) sessions
cmd/initContainer: Unbreak access to CA certificates in sshd(8) sessions
Add p11-kit-client.so to newer Debian images
cmd/initContainer: Rename a function
cmd/initContainer: Mark a constant as such
cmd/initContainer.go: Rename a variable for brevity
cmd/initContainer.go: Rename a parameter for brevity
images/arch: Drop one "o" and rename the project as "Toolbx" (part 3)
images/arch: Rename a file
cmd/initContainer: Unbreak access to CA certificates in su(1) & sudo(8)
cmd/initContainer: Use configuration file for 'p11-kit server' socket
cmd/initContainer: Use configuration file for 'p11-kit server' socket
README.md, doc: Mention access to the CA certificates from the host
README.md, doc: Mention access to the CA certificates from the host
jorti commentedon Oct 23, 2026
Hi, any update on this? The README now says that toolbox has seamless access to the CA certificates, but testing with
curlI can see this is not true. Am I missing something?Host and container are both Fedora 44, with
toolbox-0.3-4.fc44.x86_64.