multiple recipients encryption and decryption in gpgsm

2019-11-28 Thread Yves T via Gnupg-users
Dear Werner, Thank you for your prompt reaction. I did a test an despite the error I see indeed the file is correctly decrypted. So the conclusion is that when a file is encrypted with two recipients - when the file is received by the second recipient it is sufficient that he has the correspond

Re: multiple recipients encryption and decryption in gpgsm

2019-11-28 Thread Werner Koch via Gnupg-users
On Thu, 28 Nov 2019 10:57, Yves T said: > 1. is B able to decrypt the file if he has not the secret key from A Yes. As long as the secret key (aka private key) is available Quick test: $ fortune | gpgsm -ev -r 0xE297583E -r 0xCA89261C >/tmp/testenc The first -r ist for s/n 1A02 and the

multiple recipients encryption and decryption in gpgsm

2019-11-28 Thread Yves T via Gnupg-users
Sender A: To recapitulate : sender A uses gpgsm with 2 recipients: gpgsm --recipient --recipient --encrypt file.txt > encryptedfile.gpg Receiver B: The receiving end B has his own correct secret key available but not the secret key from B and gets an error when decrypting the file: gpgsm: DB