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 1374739

Summary: gpgsm - no agent running
Product: Red Hat Enterprise Linux 7 Reporter: Ondrej Moriš <omoris>
Component: gnupg2Assignee: Tomas Mraz <tmraz>
Status: CLOSED WONTFIX QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: unspecified Docs Contact:
Priority: low    
Version: 7.3CC: mgrepl, szidek
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: 2019-02-04 12:58:48 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:

Description Ondrej Moriš 2016-09-09 13:47:57 UTC
Description of problem:

Operations of gpgsm fail because it is not possible to connect to running gpg-agent.

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

gnupg2-2.0.22-4.el7

How reproducible:


Steps to Reproduce:
1. gpgsm --verbose 
         --disable-crl-checks 
         --disable-ocsp 
         --debug-ignore-expiration 
         --cipher-algo 3DES 
-e binary.msg
          -r <recipient>    
          -o binary.msg-3DES 
2.
3.

Actual results:

test> pgrep gpg-agent
test> gpgsm --verbose --disable-crl-checks         --disable-ocsp --debug-ignore-expiration -r 3C:F4:05:46:4F:66:ED:4A:7D:F4:5B:BD:D1:E4:28:2E:33:BD:B7:6E         -o binary.msg-3DES --cipher-algo 3DES -e binary.msg
gpgsm: no key usage specified - assuming all usages
gpgsm: no running gpg-agent - starting one
gpgsm: waiting 5 seconds for the agent to come up
gpgsm: can't connect to the agent: Invalid value passed to IPC
gpgsm: certificate has expired
gpgsm:   (expired at 2002-12-03 09:36:38)
gpgsm: WARNING: ignoring expiration
gpgsm: checking the trust list failed: No agent running
gpgsm: validation model used: shell
gpgsm: can't encrypt to `3C:F4:05:46:4F:66:ED:4A:7D:F4:5B:BD:D1:E4:28:2E:33:BD:B7:6E': No agent running
test> pgrep gpg-agent
6366
test> gpgsm --verbose --disable-crl-checks         --disable-ocsp --debug-ignore-expiration -r 3C:F4:05:46:4F:66:ED:4A:7D:F4:5B:BD:D1:E4:28:2E:33:BD:B7:6E         -o binary.msg-3DES --cipher-algo 3DES -e binary.msg
gpgsm: no key usage specified - assuming all usages
gpgsm: no running gpg-agent - starting one
gpgsm: waiting 5 seconds for the agent to come up
gpgsm: can't connect to the agent: Invalid value passed to IPC
gpgsm: certificate has expired
gpgsm:   (expired at 2002-12-03 09:36:38)
gpgsm: WARNING: ignoring expiration
gpgsm: checking the trust list failed: No agent running
gpgsm: validation model used: shell
gpgsm: can't encrypt to `3C:F4:05:46:4F:66:ED:4A:7D:F4:5B:BD:D1:E4:28:2E:33:BD:B7:6E': No agent running


Expected results:


Additional info:

It looks like it was never worked on RHEL7. On the other hand, on RHEL6 it works just fine.

Comment 1 Tomas Mraz 2016-09-09 15:04:11 UTC
*** Bug 1374741 has been marked as a duplicate of this bug. ***

Comment 3 Tomas Mraz 2019-02-04 12:58:48 UTC
As there is no customer case attached, I am going to close this request.