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.
Cloned from upstream: https://pagure.io/freeipa/issue/8204
### Issue
changing the freeipa ui apache server cert fails.
ipa-server-certinstall -w -p whatever --pin="" /etc/ssl/a.pem.crt /etc/ssl/private/a.pem.key
fails with
ipapython.ipautil: DEBUG: stderr=
dbus.connection: ERROR: Unable to set arguments ({'template-subject': <Name(O=1.QUIETFOUNTAIN.COM,CN=registry.1.quietfountain.com)>},) according to signature 'a{sv}': <class 'TypeError'>: Don't know which D-Bus type to use to encode type "Name"
ipapython.admintool: DEBUG: File "/usr/lib/python3/dist-packages/ipapython/admintool.py", line 179, in execute
return_value = self.run()
File "/usr/lib/python3/dist-packages/ipaserver/install/ipa_server_certinstall.py", line 117, in run
self.replace_http_cert()
File "/usr/lib/python3/dist-packages/ipaserver/install/ipa_server_certinstall.py", line 173, in replace_http_cert
certmonger.add_subject(req_id, cert.subject)
File "/usr/lib/python3/dist-packages/ipalib/install/certmonger.py", line 305, in add_subject
add_request_value(request_id, 'template-subject', subject)
File "/usr/lib/python3/dist-packages/ipalib/install/certmonger.py", line 284, in add_request_value
request.obj_if.modify({directive: value})
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 147, in __call__
**keywords)
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 643, in call_blocking
message.append(signature=signature, *args)
ipapython.admintool: DEBUG: The ipa-server-certinstall command failed, exception: TypeError: Don't know which D-Bus type to use to encode type "Name"
ipapython.admintool: ERROR: Don't know which D-Bus type to use to encode type "Name"
ipapython.admintool: ERROR: The ipa-server-certinstall command failed.
#### Steps to Reproduce
See above, 100%
Change
def add_subject(request_id, subject):
"""
In order for a certmonger request to be renwable it needs the subject
set in the request file.
When an existing certificate is added via start-tracking it won't have
a subject_template set. !!!
"""
- add_request_value(request_id, 'template-subject', subject)
+ add_request_value(request_id, 'template-subject', str(subject))
and it works.
certmonger/eoan,now 0.79.6-2 amd64 [installed,automatic]
I'm concerned my 'fix' will not result in certmonger actually doing the right thing, but at least the command completes 'normally'. I'll leave it to the freeipa brain trust from here.
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 (Moderate: idm:DL1 and idm:client security, bug fix, and enhancement update), 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/RHSA-2021:1846