Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1364459 - ipa-getcert command should warn user about non-existent PIN file
Summary: ipa-getcert command should warn user about non-existent PIN file
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: certmonger
Version: 7.3
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: ---
Assignee: Rob Crittenden
QA Contact: Kaleem
Depends On:
TreeView+ depends on / blocked
Reported: 2016-08-05 12:00 UTC by Abhijeet Kasurde
Modified: 2018-08-01 23:24 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:
Target Upstream Version:

Attachments (Terms of Use)

Description Abhijeet Kasurde 2016-08-05 12:00:44 UTC
Description of problem:
Currently, ipa-getcert command put warning message about non-existent PIN file in /var/log/messages
But, command should notify user this on STOUT and fail.

[root@ipamaster731 ~]# ipa-getcert request -d $TmpDir -n certtest -I testing -p /tmp/non-existent.txt
New signing request "testing" added.
[root@ipamaster731 ~]# tail -1 /var/log/messages 
Aug  5 11:56:14 ipamaster731 certmonger: 2016-08-05 11:56:14 [6556] Error reading PIN from "/tmp/non-existent.txt": No such file or directory.

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

How reproducible:

Steps to Reproduce:
1. TmpDir=`mktemp -d`
2. ipa-getcert request -d $TmpDir -n certtest -I testing -p $TmpDir/non-existent.txt

Actual results:
Command succeed and prints warning message in /var/log/messages

Expected results:
ipa-getcert fails with warning about non-existent PIN file

Additional info:

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