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 1344810

Summary: Certificate not importing PKI-Tomcat ipa-server-install
Product: Red Hat Enterprise Linux 7 Reporter: J. M. Becker <j.becker>
Component: ipaAssignee: IPA Maintainers <ipa-maint>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Kaleem <ksiddiqu>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4CC: j.becker, pvoborni, rcritten
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-15 10:36:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
IPA Server Install Log none

Description J. M. Becker 2016-06-10 23:17:45 UTC
Description of problem:
Re-installing FreeIPA causes Error during certificate import.


Version-Release number of selected component (if applicable):


How reproducible:
ipa-server-install ...


Actual results:

[error] NSPRError: (SEC_ERROR_REUSED_ISSUER_AND_SERIAL) You are attempting to import a cert with the same issuer/serial as an existing cert, but that is not the same cert.
ipa.ipapython.install.cli.install_tool(Server): ERROR    (SEC_ERROR_REUSED_ISSUER_AND_SERIAL) You are attempting to import a cert with the same issuer/serial as an existing cert, but that is not the same cert.



Additional info:

I was unable to locate where the certificates existed, nor was it indicated in any documentation. ipa-server-uninstall did not completely uninstall in this regard.

Comment 2 Petr Vobornik 2016-06-13 08:26:21 UTC
What version of IPA? Could you attach ipaserver-install.log?

Comment 3 J. M. Becker 2016-06-13 16:21:25 UTC
Created attachment 1167549 [details]
IPA Server Install Log

Comment 4 J. M. Becker 2016-06-13 16:24:50 UTC
(In reply to Petr Vobornik from comment #2)
> What version of IPA? Could you attach ipaserver-install.log?

Provided by RHEL7, FreeIPA Version
4.2.0-15

I attached Install Log, This is another one,   Keep in mind, this install has been attempted many times, and if a certificate store hangs around post-uninstall that would be very likely the problem.

Comment 5 Petr Vobornik 2016-06-13 17:04:28 UTC
It fails on storing RA agent cert.

After ipa-server-install --uninstall

Check /etc/httpd/alias for the cert.
  # certutil -L -d /etc/httpd/alias

If you want clean state then you can remove all certs there.
 # certutil -D -n 'ipaCert' -d /etc/httpd/alias

For completness: other IPA related NSS databases:
  CA: /etc/pki/pki-tomcat/alias
  DS: /etc/dirsrv/slapd-MY-REALM-TEST

Comment 6 J. M. Becker 2016-06-14 19:39:23 UTC
The system was totaled, I had redone it and moved beyond this certificate error to a new one. Thank you for your response though.

Comment 7 Petr Vobornik 2016-06-15 10:36:33 UTC
OK. Given that we don't have reproduction steps and the environment no longer exist there is no point to investigate further. Closing the bug.

Comment 8 Petr Vobornik 2016-06-17 15:52:53 UTC
Also looks like duplicate of bug 1318186