Openssl - Sign and Verify the signature

To sign a document with key and cert bundle

openssl smime -sign -in data.txt -out data_signed.txt -signer testCert.crt -inkey testPrivate.key -certfile test.bundle -outform der -nodetach

To verify the signer of the document

openssl pkcs7 -inform DER -print_certs -in data_signed.txt

Search