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 [email protected] 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 724036 - Internal error revoking certificate - default revocation reason
Summary: Internal error revoking certificate - default revocation reason
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ipa
Version: 6.1
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: rc
: ---
Assignee: Rob Crittenden
QA Contact: Chandrasekar Kannan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-21 18:35 UTC by Jenny Severance
Modified: 2015-01-04 23:50 UTC (History)
3 users (show)

Fixed In Version: ipa-2.1.0-1.el6
Doc Type: Bug Fix
Doc Text:
Do not document
Clone Of:
Environment:
Last Closed: 2011-12-06 18:41:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:1533 0 normal SHIPPED_LIVE Moderate: ipa security and bug fix update 2011-12-06 01:23:31 UTC

Description Jenny Severance 2011-07-21 18:35:22 UTC
Description of problem:

Revoking certificate is causing an internal error and tracebace.  ipa cert-revoke is being executed without supplying  --revocation-reason=

The default should be zero .. but the trace back indicates reason 7
https://bugzilla.redhat.com/show_bug.cgi?id=712889  (existing bug)


errors_log traceback:

[Thu Jul 21 13:44:47 2011] [error] ipa: ERROR: non-public: KeyError: 'revocation_reason'
[Thu Jul 21 13:44:47 2011] [error] Traceback (most recent call last):
[Thu Jul 21 13:44:47 2011] [error]   File "/usr/lib/python2.6/site-packages/ipaserver/rpcserver.py", line 220, in wsgi_execute
[Thu Jul 21 13:44:47 2011] [error]     result = self.Command[name](*args, **options)
[Thu Jul 21 13:44:47 2011] [error]   File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 425, in __call__
[Thu Jul 21 13:44:47 2011] [error]     ret = self.run(*args, **options)
[Thu Jul 21 13:44:47 2011] [error]   File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 731, in run
[Thu Jul 21 13:44:47 2011] [error]     return self.execute(*args, **options)
[Thu Jul 21 13:44:47 2011] [error]   File "/usr/lib/python2.6/site-packages/ipalib/plugins/cert.py", line 554, in execute
[Thu Jul 21 13:44:47 2011] [error]     if kw['revocation_reason'] == 7:
[Thu Jul 21 13:44:47 2011] [error] KeyError: 'revocation_reason'

Automated Test:

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: ipa-functionalservices-ldap-006: Revoke certificate
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

kdestroy: No credentials cache found while destroying cache
spawn /usr/bin/kinit -V admin
Using default cache: /tmp/krb5cc_0
Using principal: admin@TESTRELM
Password for admin@TESTRELM: 
Authenticated to Kerberos v5
Default principal: admin@TESTRELM
:: [02:11:49] ::  kinit as admin with password Secret123 was successful.
:: [   PASS   ] :: Get administrator credentials
:: [02:11:52] ::  ldap/hp-dl360g5-02.testrelm certificate serial number: 14
ipa: ERROR: an internal error has occurred
:: [   FAIL   ] :: Revoke LDAP server's certificate (Expected 0, got 1)
:: [02:11:54] ::  Checking certificate revokation via OCSP
:: [02:11:54] ::  EXECUTING: /usr/lib64/nss/unsupported-tools/ocspclnt -S "hp-dl360g5-02.testrelm" -d /etc/dirsrv/slapd-instance1/
:: [   PASS   ] :: Running ocspclnt
:: [   FAIL   ] :: File '/tmp/ocsp.out' should contain 'Peer's Certificate has been revoked.' 

Version-Release number of selected component (if applicable):
# rpm -qi ipa-server
Name        : ipa-server                   Relocations: (not relocatable)
Version     : 2.0.99                            Vendor: (none)
Release     : 3.20110721T0516zgit8e8ad51.el6   Build Date: Thu 21 Jul 2011 01:29:18 AM EDT
Install Date: Thu 21 Jul 2011 12:43:27 PM EDT      Build Host: goofy-vm16.dsdev.sjc.redhat.com
Group       : System Environment/Base       Source RPM: ipa-2.0.99-3.20110721T0516zgit8e8ad51.el6.src.rpm
Size        : 3314423                          License: GPLv3+
Signature   : (none)
URL         : http://www.freeipa.org/
Summary     : The IPA authentication server
Description :
IPA is an integrated solution to provide centrally managed Identity (machine,
user, virtual machines, groups, authentication credentials), Policy
(configuration settings, access control information) and Audit (events,
logs, analysis thereof). If you are installing an IPA server you need
to install this package (in other words, most people should NOT install
this package).


How reproducible:


Steps to Reproduce:
1. ipa cert-revoke <servial_number>
2.
3.
  
Actual results:
# ipa cert-revoke 15
ipa: ERROR: an internal error has occurred

Expected results:
successful revocation with default reason 0

Additional info:

Comment 6 Rob Crittenden 2011-10-31 21:09:50 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Do not document

Comment 7 Namita Soman 2011-11-06 04:02:19 UTC
Verified using ipa-client-2.1.3-8.el6.x86_64
Revoking certificate is not causing an internal error 

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: ipa-functionalservices-ldap-006: Revoke certificate
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

kdestroy: No credentials cache found while destroying cache
spawn /usr/bin/kinit -V admin
Using default cache: /tmp/krb5cc_0
Using principal: admin@TESTRELM
Password for admin@TESTRELM: 
Authenticated to Kerberos v5
Default principal: admin@TESTRELM
:: [22:54:37] ::  kinit as admin with password Secret123 was successful.
:: [   PASS   ] :: Get administrator credentials
:: [22:54:41] ::  ldap/dell-pesc1420-01.testrelm certificate serial number: 17
  Revoked: True
:: [   PASS   ] :: Revoke LDAP server's certificate
:: [22:54:44] ::  Checking certificate revokation via OCSP
:: [22:54:44] ::  EXECUTING: /usr/lib64/nss/unsupported-tools/ocspclnt -S "dell-pesc1420-01.testrelm" -d /etc/dirsrv/slapd-instance1/
:: [   PASS   ] :: Running ocspclnt
:: [   PASS   ] :: File '/tmp/ocsp.out' should contain 'Peer's Certificate has been revoked.'
'61f19dcc-eb19-4e42-8a62-fc0a7528c0c1'
ipa-functionalservices-ldap-006 result: PASS
   metric: 0
   Log: /tmp/beakerlib-3510265/journal.txt
    Info: Searching AVC errors produced since 1320548075.91 (Sat Nov  5 22:54:35 2011)
     Searching logs...
     Info: No AVC messages found.
 Writing to /mnt/testarea/tmp.Oz2Lzo
:
   AvcLog: /mnt/testarea/tmp.Oz2Lzo

Comment 8 errata-xmlrpc 2011-12-06 18:41:50 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-2011-1533.html


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