Bug 2358273 - cbs-koji.conf points to non existing /etc/pki/tls/certs/ca-bundle.trust.crt [NEEDINFO]
Summary: cbs-koji.conf points to non existing /etc/pki/tls/certs/ca-bundle.trust.crt
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: centos-packager
Version: 42
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Davide Cavalca
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-04-08 14:02 UTC by Sandro Bonazzola
Modified: 2026-05-06 12:34 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:
fkrenzel: needinfo? (davide)


Attachments (Terms of Use)

Description Sandro Bonazzola 2025-04-08 14:02:37 UTC
On Fedora 42:

# cbs list-tagged virt10s-kvm-common-candidate
2025-04-08 15:50:08,123 [ERROR] koji: OSError: Could not find a suitable TLS CA certificate bundle, invalid path: /etc/pki/tls/certs/ca-bundle.trust.crt

# rpm -qV centos-packager

shows no changes in the installed config file.

The file /etc/pki/tls/certs/ca-bundle.trust.crt is really missing

# dnf provides /etc/pki/tls/certs/ca-bundle.trust.crt
Updating and loading repositories:
Repositories loaded.
No matches found. If searching for a file, try specifying the full path or using a wildcard prefix ("*/") at the beginning.

# dnf provides "*/ca-bundle.trust.crt"
Updating and loading repositories:
Repositories loaded.
No matches found. If searching for a file, try specifying the full path or using a wildcard prefix ("*/") at the beginning.

Reproducible: Always

Steps to Reproduce:
1. Install centos-packager-0.7.0-16.fc42.noarch on fedora 42
2. Try to use it
3.
Actual Results:  
Fails on missing /etc/pki/tls/certs/ca-bundle.trust.crt

Expected Results:  
should work

it used to work on Fedora 41

Comment 1 Sandro Bonazzola 2025-04-08 14:05:45 UTC
Workaround: comment out the line "serverca = /etc/pki/tls/certs/ca-bundle.trust.crt"
but I think having a working server CA check would be better.

Comment 2 Frantisek Krenzelok 2025-04-14 14:58:06 UTC
My apologies for the trouble

I have got a new build with a bugfix in Bodhi https://bodhi.fedoraproject.org/updates/FEDORA-2025-d27d5ffd7a this reintroduces the file.

Comment 3 Peter Georg 2025-07-24 11:50:47 UTC
While this might be fixed for Fedora 42, it seems Fedora 43 and RHEL 10 are missing /etc/pki/tls/certs/ca-bundle.trust.crt. I.e., Fedora 43+ and EPEL10 are affected by this issue.

One possible fix seems using "serverca = /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem"

Comment 4 Frantisek Krenzelok 2025-07-24 12:36:33 UTC
Hey Peter,

As for Fedora43+ the file will not be present in the future, so the one possible fix you have mentioned is suggested but not optimal https://fedoraproject.org/wiki/Changes/dropingOfCertPemFile, unless of course there is a good reason why centos-packager uses the bundle with the openssl -- EXTENDED BEGIN TRUST -- format.

The optimal solution here is to use OpenSSL defaults, I wonder why the bundle has to be specified. Davide any ideas?

As for RHEL-10 I will be reverting that change in a week or so during the annual update of certificates.

Comment 5 Fedora Release Engineering 2026-05-06 12:34:11 UTC
This message is a reminder that Fedora Linux 42 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 42 on 2026-05-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '42'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 42 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.


Note You need to log in before you can comment on or make changes to this bug.