For S/MIME, I now know I can verify PKCS#7 detached signatures with:
openssl smime -verify -in detachedsign.pem -content content.txt
But what about non-MIME messages?
So if I sign the message Hello, World!
with openssl smime -sign -text....
it will actually be signing
Content-Type: plain/text
Hello, World!
Is it possible to use openssl to sign a normal text file (as it is)? When -sign
outputs a PKCS#7 detached signature and -verify
accepts a PKCS#7 detached signature and content