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.

Bug 1486283

Summary: TypeError in renew_ca_cert prevents from swiching back to self-signed CA
Product: Red Hat Enterprise Linux 7 Reporter: Petr Vobornik <pvoborni>
Component: ipaAssignee: IPA Maintainers <ipa-maint>
Status: CLOSED ERRATA QA Contact: Michal Reznik <mreznik>
Severity: high Docs Contact:
Priority: high    
Version: 7.4CC: cparadka, ksiddiqu, mreznik, myusuf, pasik, pvoborni, rcritten, slaznick, tscherf
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-4.5.0-21.el7.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1489815 (view as bug list) Environment:
Last Closed: 2018-04-10 16:46:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1489815    
Attachments:
Description Flags
verification_steps none

Description Petr Vobornik 2017-08-29 11:35:54 UTC
Cloned from upstream: https://pagure.io/freeipa/issue/7106

Steps to reproduce:
1. install FreeIPA server with self-signed CA certificate (default)
2. use ipa-cacert-manage to switch to CA certificate signed by external CA
3. use ipa-cacert-manage to to self-signed CA certificate

Expected:
Importing the renewed CA certificate, please wait        
CA certificate successfully renewed                      
The ipa-cacert-manage command was successful             

Got:
Renewing CA certificate, please wait                     
Error resubmitting certmonger request '20170816133559', please check the request manually                          
The ipa-cacert-manage command failed.                    

From journalctl -u certmonger:
```
Traceback (most recent call last): 
File "/usr/libexec/ipa/certmonger/renew_ca_cert", line 218, in <module>
  main()
File "/usr/libexec/ipa/certmonger/renew_ca_cert", line 212, in main
  _main()
File "/usr/libexec/ipa/certmonger/renew_ca_cert", line 183, in _main
  db.trust_root_cert(ca_nick, 'C' + ca_flags)                                                                                                       
TypeError: cannot concatenate 'str' and 'TrustFlags' objects
```

Comment 2 Petr Vobornik 2017-08-29 11:36:07 UTC
Upstream ticket:
https://pagure.io/freeipa/issue/7106

Comment 5 Standa Laznicka 2017-08-30 11:00:46 UTC
Fixed upstream
master:
https://pagure.io/freeipa/c/ee5345ac05fd1e133243ffb61c25615840f7bd87

Comment 6 Petr Vobornik 2017-09-01 21:07:25 UTC
*** Bug 1466786 has been marked as a duplicate of this bug. ***

Comment 7 Standa Laznicka 2017-09-08 10:39:22 UTC
Fixed upstream
ipa-4-5:
https://pagure.io/freeipa/c/85d5611119b9e3d616589d2a8e7447055184592b

Comment 10 Michal Reznik 2017-12-05 18:23:22 UTC
Verified on ipa-server-4.5.4-6.el7.x86_64.

Comment 11 Michal Reznik 2017-12-05 18:24:30 UTC
Created attachment 1363306 [details]
verification_steps

Comment 18 errata-xmlrpc 2018-04-10 16:46:13 UTC
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-2018:0918

Comment 19 Red Hat Bugzilla 2023-09-15 00:03:41 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days