Bug 688229
| Summary: | certmonger accepts a non-existent pin file for NSS db(with empty passwd) when '-p' option is supplied to 'ipa-getcert request' | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Kashyap Chamarthy <kchamart> |
| Component: | certmonger | Assignee: | Nalin Dahyabhai <nalin> |
| Status: | CLOSED ERRATA | QA Contact: | BaseOS QE Security Team <qe-baseos-security> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.0 | CC: | dpal, jgalipea, kchamart, ksiddiqu |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | certmonger-0.38-1.el6 | Doc Type: | Bug Fix |
| Doc Text: |
The certmonger service accepted a non-existent PIN (Personal Identification Number) file for the NSS (Network Security Services) database if the user ran the ipa-getcert request command with the -p option. This occurred because certmonger failed to detect reading errors in the file with the PIN and proceeded with an empty PIN value. With this update, such reading errors are logged and certmonger proceeded as if it had read an empty PIN value.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-05-19 13:07:19 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: | |||
|
Description
Kashyap Chamarthy
2011-03-16 15:49:12 UTC
Verified. RHEL Version: [root@tiger ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.1 Beta (Santiago) Certmonger Version: [root@tiger ~]# rpm -qai certmonger |head Name : certmonger Relocations: (not relocatable) Version : 0.40 Vendor: Red Hat, Inc. Release : 1.el6 Build Date: Tue 29 Mar 2011 02:58:11 AM IST Install Date: Wed 30 Mar 2011 07:36:13 AM IST Build Host: x86-008.build.bos.redhat.com Group : System Environment/Daemons Source RPM: certmonger-0.40-1.el6.src.rpm Size : 867380 License: GPLv3+ Signature : (none) Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> URL : http://certmonger.fedorahosted.org Summary : Certificate status monitor and PKI enrollment client [root@tiger ~]# Steps used to verify: (1)Install certmonger (2)Start certmonger service [root@tiger ~]# service certmonger start Starting certmonger: [ OK ] (3)Issue a certificate request with non-existent NSS database password file(-p switch) and check its status [root@tiger ~]# ipa-getcert request -d /tmp/kaleem/ -n test -p /tmp/kaleem/passwordfile.txt New signing request "20110330024526" added. [root@tiger ~]# ipa-getcert list Number of certificates and requests being tracked: 4. Request ID '20110330024526': status: NEWLY_ADDED_NEED_KEYI_READ_PIN stuck: yes key pair storage: type=NSSDB,location='/tmp/kaleem',nickname=test,pinfile=/tmp/kaleem/passwordfile.txt certificate: type=NSSDB,location='/tmp/kaleem',nickname=test CA: IPA issuer: subject: expires: unknown track: yes auto-renew: yes [root@tiger ~] Certificate has been not generated. (4)look at /var/log/message for error message regarding non-existent of password file. [root@tiger ~]# tail -5 /var/log/messages Mar 30 08:15:26 tiger certmonger: Error reading PIN from "/tmp/kaleem/passwordfile.txt": No such file or directory. Mar 30 08:15:26 tiger certmonger: Error reading PIN from "/tmp/kaleem/passwordfile.txt": No such file or directory. [root@tiger ~]# Results: Certificate is not generated and an error message regarding non-existent of password file is provided in /var/log/messages.
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:
The certmonger service accepted a non-existent PIN (Personal Identification Number) file for the NSS (Network Security Services) database if the user ran the ipa-getcert request command with the -p option. This occurred because certmonger failed to detect reading errors in the file with the PIN and proceeded with an empty PIN value. With this update, such reading errors are logged and certmonger proceeded as if it had read an empty PIN value.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0570.html |