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 811295 - Installation fails when CN is set in certificate subject base
Summary: Installation fails when CN is set in certificate subject base
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ipa
Version: 6.3
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: rc
: ---
Assignee: Rob Crittenden
QA Contact: Namita Soman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-10 16:12 UTC by Dmitri Pal
Modified: 2015-05-12 11:06 UTC (History)
4 users (show)

Fixed In Version: ipa-3.0.0-1.el6
Doc Type: Bug Fix
Doc Text:
Cause: Administrators installing Identity Management were able to choose certificate subject base with a Common name (CN) as one component. However, it is illegal to have more than one CN attribute in a certificate subject. Consequence: Identity Management installation crashes. Fix: Do not allow CN attribute in a certificate subject base option. Result: Administrator is warned when he chooses a wrong certificate subject base.
Clone Of:
Environment:
Last Closed: 2013-02-21 09:10:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:0528 0 normal SHIPPED_LIVE Low: ipa security, bug fix and enhancement update 2013-02-21 08:22:21 UTC

Description Dmitri Pal 2012-04-10 16:12:10 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/freeipa/ticket/2584

The CN attribute is allowed in certificate subject base. However, when it is set, it makes installation fail:

{{{
$ ipa-server-install ... --subject CN=Test

...

Unable to set admin password Command '/usr/bin/ldappasswd -h vm-085.idm.lab.bos.redhat.com -ZZ -x -D cn=Directory Manager -y /var/lib/ipa/tmp3SXnWH -T /var/lib/ipa/tmptPWLlg uid=admin,cn=users,cn=accounts,dc=idm,dc=lab,dc=bos,dc=redhat,dc=com' returned non-zero exit status 1
Configuration of client side components failed!
ipa-client-install returned: Command '/usr/sbin/ipa-client-install --on-master --unattended --domain idm.lab.bos.redhat.com --server vm-085.idm.lab.bos.redhat.com --realm IDM.LAB.BOS.REDHAT.COM --hostname vm-085.idm.lab.bos.redhat.com' returned non-zero exit status 1
}}}

ipaserver-install.log:
{{{
...

2012-03-27T13:08:09Z DEBUG Changing admin password
2012-03-27T13:08:09Z DEBUG args=/usr/bin/ldappasswd -h vm-085.idm.lab.bos.redhat.com -ZZ -x -D cn=Directory Manager -y /var/lib/ipa/tmp3SXnWH -T /var/lib/ipa/tmptPWLlg uid=admin,cn=users,cn=accounts,dc=idm,dc=lab,dc=bos,dc=redhat,dc=com
2012-03-27T13:08:09Z DEBUG stdout=
2012-03-27T13:08:09Z DEBUG stderr=ldap_start_tls: Connect error (-11)
        additional info: TLS: hostname does not match CN in peer certificate

2012-03-27T13:08:09Z DEBUG Unable to set admin password Command '/usr/bin/ldappasswd -h vm-085.idm.lab.bos.redhat.com -ZZ -x -D cn=Directory Manager -y /var/lib/ipa/tmp3SXnWH -T /var/lib/ipa/tmptPWLlg uid=admin,cn=users,cn=accounts,dc=idm,dc=lab,dc=bos,dc=redhat,dc=com' returned non-zero exit status 1
2012-03-27T13:08:11Z DEBUG args=/usr/sbin/ipa-client-install --on-master --unattended --domain idm.lab.bos.redhat.com --server vm-085.idm.lab.bos.redhat.com --realm IDM.LAB.BOS.REDHAT.COM --hostname vm-085.idm.lab.bos.redhat.com
2012-03-27T13:08:11Z DEBUG stdout=ESC[?1034hInstallation failed. Rolling back changes.
IPA client is not configured on this system.

2012-03-27T13:08:11Z DEBUG stderr=ipa         : ERROR    LDAP Error: Connect error: TLS: hostname does not match CN in peer certificate
Failed to verify that vm-085.idm.lab.bos.redhat.com is an IPA Server.
This may mean that the remote server is not up or is not reachable
due to network or firewall settings.
}}}

ipaclient-install.log:
{{{
...

2012-03-27T13:08:11Z DEBUG Init ldap with: ldap://vm-085.idm.lab.bos.redhat.com:389
2012-03-27T13:08:11Z ERROR LDAP Error: Connect error: TLS: hostname does not match CN in peer certificate
2012-03-27T13:08:11Z DEBUG will use domain: idm.lab.bos.redhat.com

2012-03-27T13:08:11Z DEBUG will use server: vm-085.idm.lab.bos.redhat.com
}}}

Comment 1 RHEL Program Management 2012-07-10 07:13:06 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 2 RHEL Program Management 2012-07-10 23:27:01 UTC
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development.  This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.

Comment 3 Martin Kosek 2012-09-18 07:27:37 UTC
Fixed upstream:

master: 390d708e43a71bf45b5a6e168277ebea483f473f - Installation fails when CN is set in certificate subject base

ipa-3-0: 390d708e43a71bf45b5a6e168277ebea483f473f - Installation fails when CN is set in certificate subject base

As having a multiple CNs values in a subject of a certificate is generally discouraged and can cause client issues (like the one reported), it is no longer allowed by ipa-server-install's --subject option.

Comment 5 Kaleem 2012-11-27 06:57:16 UTC
Verified.

Now CN attribute is not allowed in subject parameter and error message is displayed.

IPA-Server version:
==================
[root@rhel64master install-server-cli]# rpm -q ipa-server
ipa-server-3.0.0-8.el6.x86_64
[root@rhel64master install-server-cli]#

[root@rhel64master ~]# ipa-server-install --setup-dns --forwarder=10.14.63.12 -r TESTRELM.COM -p xxxxxx -P xxxxxx -a xxxxxx -U --subject CN=Test
Usage: ipa-server-install [options]

ipa-server-install: error: --subject=CN=Test has invalid attribute: "CN"
[root@rhel64master ~]#

Comment 7 errata-xmlrpc 2013-02-21 09:10:52 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.

http://rhn.redhat.com/errata/RHSA-2013-0528.html


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