I have a pkcs#8 encrypted key. I would like to sign a file using this key without having to decrypt it beforehand. What I want to achieve is to do all the process with a single openssl command.Something like this :openssl dgst -sha256 -sign pkcs8 -inform DER -in private.key -out sign_this.txt.signed sign.txtThis command would prompt for the password and then generate the signature.Is it possible to nest commands with openssl? Please explain the right way to proceed.Thanks.
How to sign something with dgst combined with pkcs8
openssl