Feature request: --decrypt-only
Closed, ResolvedPublic

Description

Please add decrypt-only mode for gpg that decrypts message but leaves original
signature intact. The output would be like --clearsign or --sign modes generate.

qpqmq added a subscriber: qpqmq.
qpqmq raised the priority of this task from Wishlist to Normal.Sep 24 2010, 1:40 PM
werner claimed this task.Mar 24 2017, 11:08 AM
werner added a subscriber: werner.

2.1 has the option --unwrap to just this.

werner closed this task as Resolved.
pacien added a subscriber: pacien.Dec 7 2019, 11:10 PM
In T1287#94619, @werner wrote:

2.1 has the option --unwrap to just this.

As stated in the recently added documentation, this option outputs an OpenPGP data structure.
Is there any way to obtain a cleartext signature (as produced by --clearsign) or a content and detached signature pair, either through additional CLI options and the GPGPME interface or through some conversion?

This would be quite useful on its own, and in particular to allow email clients to implement decryption and rewriting into MIME multipart/signed (https://tools.ietf.org/html/rfc3156#section-6.2), useful for forwarding.