sign + encrypt with S/MIME works as expected for a single file (output encrypted file .p7m and detached signature .p7s) but for multiple files or folders the output is two files of ~same size: one encrypted file and one which is only signed. This is an accident waiting to happen and needs to be changed.
Could we make a detached signature in this cases, too, like for the single files?
Otherwise we would need to disable choosing sign + encrypt for S/MIME and mixed sign/encrypt.
We want to disable S/MIME signing for folders and multiple files.
If encryption is used then one should never get an opaque-signed unencrypted file as one of the result files.
If encryption is not used then it should still be possible to create an opaque-signed archive. In this case the user is warned that the result is probably not what they expect.
Notes for testing:
- Check S/MIME and mixed encryption with S/MIME as well as with OpenPGP signature.
- This is what was implemented:
- Disallow signing of archives in combination with S/MIME-only encryption because this would result in a signed but unencrypted archive (and a separate encrypted archive) and some people might share the signed archive assuming that it's also encrypted or that it's a detached signature (as in the case of a single file that's S/MIME signed and encrypted).
- For the same reason also disallow S/MIME-signing of archives combined with any kind of encryption.
This was reported via the forum, see external link.
Edited according to the decision from 2026-07-13.
Edited to match the implementation because it's not sufficient to just disable S/MIME signing of archives.