On decryption of a file S/MIME encrypted for multiple recipients in Kleopatra, the decryption feedback displays only one recipient.
Note: Using gpgsm directly seems to have additional issues, see gpgsm output below.
To reproduce:
- S/MIME encrypt a file for multiple recipients (e.g. Ted and Edward)
- Decrypt that file in Kleopatra => only Edward is listed
Logs
CLI gpgsm
- on entry of passphrase for first cert (edward):
Z:\testdata\verification-feedback\8273-refactor-firstpart>gpgsm -vv --status-fd 2 --decrypt smime.encrypted-only.multiple.txt.p7m
gpgsm: enabled compatibility flags:
gpgsm: no running keyboxd - starting 'C:\\Program Files\\Gpg4win\\..\\GnuPG\\bin\\keyboxd.exe'
gpgsm: waiting for the keyboxd to come up ... (8s)
gpgsm: connection to the keyboxd established
gpgsm: recp 0 - issuer: 'CN=Root-CA 2020,OU=GnuPG.com,O=g10 Code GmbH,C=DE'
gpgsm: recp 0 - serial: 281B974B684B7934
[GNUPG:] ENC_TO C7FD4C0193216FA6 0 0
gpgsm: encrypted to brainpoolP256r1 key FF810B9281A43C394AA138E9C7FD4C0193216FA6
gpgsm: no running gpg-agent - starting 'C:\\Program Files\\Gpg4win\\..\\GnuPG\\bin\\gpg-agent.exe'
[GNUPG:] PROGRESS starting_agent ? 0 0
gpgsm: waiting for the agent to come up ... (8s)
gpgsm: connection to the agent established
gpgsm: AES256.CBC encrypted data
gpgsm: looking up issuer from the Dirmngr cache
gpgsm: no running dirmngr - starting 'C:\\Program Files\\Gpg4win\\..\\GnuPG\\bin\\dirmngr.exe'
[GNUPG:] PROGRESS starting_dirmngr ? 0 0
gpgsm: waiting for the dirmngr to come up ... (8s)
gpgsm: connection to the dirmngr established
gpgsm: number of matching certificates: 0
gpgsm: dirmngr cache-only key lookup failed: No data
gpgsm: issuer certificate {04A0A7E932B29D43A9B6673139AF52C0A5FC467BF5A64D044D1AC33613ABBB73CA532569F5779999114C0118CD66FDF6E92B1B0EEE2A4D5A815DA7FD892DDDE9C1} not found using authorityKeyIdentifier
gpgsm: looking up issuer from the Dirmngr cache
gpgsm: number of matching certificates: 0
gpgsm: dirmngr cache-only key lookup failed: No data
gpgsm: certificate is good
gpgsm: validation model used: shell
[GNUPG:] DECRYPTION_OKAY
12345- on entry of passphrase for second cert (ted; edward cancelled)
Z:\testdata\verification-feedback\8273-refactor-firstpart>gpgsm -vv --status-fd 2 --decrypt smime.encrypted-only.multiple.txt.p7m gpgsm: enabled compatibility flags: gpgsm: no running keyboxd - starting 'C:\\Program Files\\Gpg4win\\..\\GnuPG\\bin\\keyboxd.exe' gpgsm: waiting for the keyboxd to come up ... (8s) gpgsm: connection to the keyboxd established gpgsm: recp 0 - issuer: 'CN=Root-CA 2020,OU=GnuPG.com,O=g10 Code GmbH,C=DE' gpgsm: recp 0 - serial: 281B974B684B7934 [GNUPG:] ENC_TO C7FD4C0193216FA6 0 0 gpgsm: encrypted to brainpoolP256r1 key FF810B9281A43C394AA138E9C7FD4C0193216FA6 gpgsm: no running gpg-agent - starting 'C:\\Program Files\\Gpg4win\\..\\GnuPG\\bin\\gpg-agent.exe' [GNUPG:] PROGRESS starting_agent ? 0 0 gpgsm: waiting for the agent to come up ... (8s) gpgsm: connection to the agent established gpgsm: error decrypting session key: Operation cancelled gpgsm: decrypting session key failed: Operation cancelled gpgsm: recp 1 - issuer: 'CN=Root-CA 2020,OU=GnuPG.com,O=g10 Code GmbH,C=DE' gpgsm: recp 1 - serial: 4D9528785EE3E701 [GNUPG:] ENC_TO F7ED85B98C7DDFC5 0 0 gpgsm: encrypted to rsa3072 key 54DCF69AD0C25D777CB4B73EF7ED85B98C7DDFC5 gpgsm: AES256.CBC encrypted data gpgsm: certificate is good gpgsm: validation model used: shell [GNUPG:] DECRYPTION_OKAY 12345[GNUPG:] FAILURE gpgsm-exit 50331649
That second case (first pinentry cancelled) has additional issues:
- Note that FAILURE at the end of the second command
- The first time this is executed (without background processes), dirmngr is not started. The second time it is (is this expected?):
Z:\issues\gpgsm-smime-multiple-recipients-list>gpgsm -vv --status-fd 2 --decrypt smime.encrypted-only.multiple.txt.p7m
gpgsm: enabled compatibility flags:
gpgsm: recp 0 - issuer: 'CN=Root-CA 2020,OU=GnuPG.com,O=g10 Code GmbH,C=DE'
gpgsm: recp 0 - serial: 281B974B684B7934
[GNUPG:] ENC_TO C7FD4C0193216FA6 0 0
gpgsm: encrypted to brainpoolP256r1 key FF810B9281A43C394AA138E9C7FD4C0193216FA6
gpgsm: AES256.CBC encrypted data
gpgsm: looking up issuer from the Dirmngr cache
gpgsm: no running dirmngr - starting 'C:\\Program Files\\Gpg4win\\..\\GnuPG\\bin\\dirmngr.exe'
[GNUPG:] PROGRESS starting_dirmngr ? 0 0
gpgsm: waiting for the dirmngr to come up ... (8s)
gpgsm: connection to the dirmngr established
gpgsm: number of matching certificates: 0
gpgsm: dirmngr cache-only key lookup failed: No data
gpgsm: issuer certificate {04A0A7E932B29D43A9B6673139AF52C0A5FC467BF5A64D044D1AC33613ABBB73CA532569F5779999114C0118CD66FDF6E92B1B0EEE2A4D5A815DA7FD892DDDE9C1} not found using authorityKeyIdentifier
gpgsm: looking up issuer from the Dirmngr cache
gpgsm: number of matching certificates: 0
gpgsm: dirmngr cache-only key lookup failed: No data
gpgsm: certificate is good
gpgsm: validation model used: shell
[GNUPG:] DECRYPTION_OKAY
12345gpg version
>gpg --version gpg (GnuPG) 2.5.21 libgcrypt 1.12.2

