Get signature from a file

Posted by Eugen on Stack Overflow See other posts from Stack Overflow or by Eugen
Published on 2012-09-28T01:15:26Z Indexed on 2012/09/28 3:38 UTC
Read the original article Hit count: 216

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about .NET

Related posts about openssl