Get signature from a file
- by Eugen
I have a php code that gets a signature for a file using such a code
shell_exec("openssl smime -binary -sign".
" -certfile '".$keyPath."/WWDR.pem'".
" -signer '".$keyPath."/passcertificate.pem'".
" -inkey '".$keyPath."/passkey.pem'".
" -in '".$this->workFolder."/manifest.json'".
" -out '".$this->workFolder."/signature'".
" -outform DER -passin pass:'$pass'");
I need to have a pure managed C# code that would the same? Any idea how to do this?
Thx