Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
Windows AD often provides files in PKCS#7 format (with p7b extensions) importing with ipa-cacert-manage fails:
# ipa-cacert-manage install /tmp/ca.p7b
Installing CA certificate, please wait
Not a valid certificate: Unable to load certificate
The ipa-cacert-manage command failed.
I heard from another reported that this could also throw a padding error (which I assumed meant the entire contents of the PKCS#7 file was passed to the base64 decoder).
Version-Release number of selected component (if applicable):
ipa-server-4.5.4-10.el7
Steps to Reproduce:
1. openssl crl2pkcs7 -nocrl -certfile /etc/ipa/ca.crt -out /tmp/ca.p7b
2. ipa-cacert-manage install /tmp/ca.p7b
ipa-server-4.6.5-9.el7.x86_64
Verified the bug on the basis of following observations:
REPRODUCER:
---------------------------------------------------------------
[root@vm-idm-004 ~]# rpm -q ipa-server
ipa-server-4.6.4-10.el7.x86_64
[root@vm-idm-004 ~]# openssl crl2pkcs7 -nocrl -certfile /etc/ipa/ca.crt -out /tmp/ca.p7b
[root@vm-idm-004 ~]# ls -l /tmp/ca.p7b
-rw-r--r--. 1 root root 1351 Jun 26 14:11 /tmp/ca.p7b
[root@vm-idm-004 ~]# ipa-cacert-manage install /tmp/ca.p7b
Installing CA certificate, please wait
Not a valid certificate: Unable to load certificate
The ipa-cacert-manage command failed.
VALIDATION:
---------------------------------------------------------------
[root@qe-blade-08 ~]# rpm -q ipa-server
ipa-server-4.6.5-9.el7.x86_64
[root@qe-blade-08 ~]# openssl crl2pkcs7 -nocrl -certfile /etc/ipa/ca.crt -out /tmp/ca.p7b
[root@qe-blade-08 ~]# ls -l /tmp/ca.p7b
rw-rr-. 1 root root 1351 Jun 26 03:43 /tmp/ca.p7b
[root@qe-blade-08 ~]# ipa-cacert-manage install /tmp/ca.p7b
Installing CA certificate, please wait
Verified CN=Certificate Authority,O=TESTRELM.TEST
CA certificate successfully installed
The ipa-cacert-manage command was successful
Thus on the basis of above observations, the issue mentioned in original bug is no more observed, thus marking the status to 'VERIFIED'
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2019:2241