How to decrypt a message while preserving the signature?
Mark H Weaver
mhw at netris.org
Sun Nov 3 15:25:49 CET 2019
Peter Lebbing <peter at digitalbrains.com> wrote:
> Werner recently mentioned an undocumented command for this.
> On 27/08/2019 11:30, Werner Koch via Gnupg-users wrote:
>> You can extra the signature from the encrypted+signed data:
>> gpg --unwrap -d -o SIG <ENC+SIG
>> and then run
>> gpgv -o SIGNEDFILE SIG && echo verified!
>> --unwrap is not documented and has the minor problem that it also keeps the
>> compression layer. However, gpgv groks that compression layer and works
>> as with a standard signature. The signature is on SIGNEDFILE which gpgv
>> outputs for you.
>  https://lists.gnupg.org/pipermail/gnupg-users/2019-August/062619.html
Thanks very much Peter, this is what I was looking for. I'm grateful.
More information about the Gnupg-users