Bug 2011807

Summary: Decrypting gpg files fail: problem with the agent: End of file
Product: [Fedora] Fedora Reporter: Marc Muehlfeld <mmuehlfe>
Component: gnupg2Assignee: Red Hat Crypto Team <crypto-team>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 35CC: bcl, crypto-team, jjelen, tm
Target Milestone: ---   
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: 2021-10-08 09:08:19 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 Marc Muehlfeld 2021-10-07 12:28:53 UTC
Description of problem:
Decrypting gpg files fail on Fedora 35.


Version-Release number of selected component (if applicable):
gnupg2-2.3.2-2.fc35.x86_64


How reproducible:
Always


Steps to Reproduce:
1. Try to decrypt a *gpg file:
   gpg -v test.gpg


Actual results:
gpg: Note: RFC4880bis features are enabled.
gpg: WARNING: no command supplied.  Trying to guess what you mean ...
gpg: AES256.CFB encrypted data
gpg: no running gpg-agent - starting '/usr/bin/gpg-agent'
gpg: waiting for the agent to come up ... (5s)
gpg: connection to the agent established
gpg: pinentry launched (32205 gtk2 1.2.0 /dev/pts/4 xterm-256color :0 20620/1000/5 1000/1000 0)
gpg: problem with the agent: End of file
gpg: encrypted with 1 passphrase
gpg: decryption failed: Bad session key


Expected results:
Decryption should work.


Additional info:
Encrypting files on F35 work. Only decryption fails.

Comment 1 Jakub Jelen 2021-10-07 12:37:03 UTC
Can you test with the -3 version from updates-testing in https://bodhi.fedoraproject.org/updates/FEDORA-2021-4bf2879524

It fixes the bug #2009978 which looks very similar like your report.

Comment 2 Marc Muehlfeld 2021-10-07 12:46:16 UTC
Thanks Jakub. gnupg2-2.3.2-3.fc35 fixes the problem.
You can close this ticket.

Comment 3 Jakub Jelen 2021-10-08 09:08:19 UTC

*** This bug has been marked as a duplicate of bug 2009978 ***