Bug 1374739 - gpgsm - no agent running
Summary: gpgsm - no agent running
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: gnupg2
Version: 7.3
Hardware: Unspecified
OS: Unspecified
low
unspecified
Target Milestone: rc
: ---
Assignee: Tomas Mraz
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
: 1374741 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-09 13:47 UTC by Ondrej Moriš
Modified: 2019-02-04 12:58 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-02-04 12:58:48 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


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