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 1730700 - no proper error message for invalid keysize during IPA install using --pki-config-override
Summary: no proper error message for invalid keysize during IPA install using --pki-co...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: pki-core
Version: 8.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: RHCS Maintainers
QA Contact: PKI QE
URL:
Whiteboard:
Depends On:
Blocks: 1730389
TreeView+ depends on / blocked
 
Reported: 2019-07-17 11:54 UTC by Thomas Woerner
Modified: 2021-02-01 14:33 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1730389
Environment:
Last Closed: 2021-02-01 07:42:14 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Thomas Woerner 2019-07-17 11:54:00 UTC
+++ This bug was initially created as a clone of Bug #1730389 +++

Description of problem:

No proper error message shown when there is invalid keysize in override.ini provided.

[root@master ~]# /usr/sbin/ipa-server-install --hostname=`hostname` -r TESTRELM.TEST -n testrelm.test -p xxxxxxx -a xxxxxxx -U --pki-config-override=/root/override.ini
...
....
Done configuring kadmin.
Configuring ipa-custodia
  [1/5]: Making sure custodia container exists
  [2/5]: Generating ipa-custodia config file
  [3/5]: Generating ipa-custodia keys
  [4/5]: starting ipa-custodia 
  [5/5]: configuring ipa-custodia to start on boot
Done configuring ipa-custodia.
Configuring certificate server (pki-tomcatd). Estimated time: 3 minutes
  [1/30]: configuring certificate server instance
Failed to configure CA instance: CalledProcessError(Command ['/usr/sbin/pkispawn', '-s', 'CA', '-f', '/tmp/tmp5nix2ehl'] returned non-zero exit status 1: 'File already exists: /etc/pki/pki-tomcat/server.xml\nFile already exists: /etc/pki/pki-tomcat/tomcat.conf\nNotice: Trust flag u is set automatically if the private key is present.\n')
See the installation logs and the following files/directories for more information:
  /var/log/pki/pki-tomcat
  [error] RuntimeError: CA configuration failed.
CA configuration failed.
The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information
(failed reverse-i-search)`unisnt': ipa-server-install --^Cinstall -U
[root@master ~]# cat override.ini 
[DEFAULT]
ipa_ca_key_size=4094
[root@master ~]#


Version-Release number of selected component (if applicable):
[root@master ~]# rpm -q ipa-server
ipa-server-4.8.0-1.module+el8.1.0+3577+202f0a51.x86_64
[root@master ~]# 


How reproducible:
Always

Steps to Reproduce:
1. Install IPA with invalid keysize using no proper --pki-config-override

Actual results:
Installation fails with no proper error message

Expected results:
Proper error message should be shown

Comment 3 RHEL Program Management 2021-02-01 07:42:14 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.


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