title: How to use openssl-net wrapper?
body: <p>Client is currently encrypting files using OpenSSL:</p>
  
  <pre><code>C:\openssl\bin"\openssl.exe smime -encrypt -des3 -in "%1.xml" -out "%1.xml.cip" "certificate.pem" &gt;&gt; D:\Log\log_encrypt.txt 
  if errorlevel 0 (del "%1.csv")
  </code></pre>
  
  <p>Now they want to do something like this:
  ERP system -> Generate Payroll -> Encrypt using OpenSSL SMIME</p>
  
  <p>So my first thought was to just run above bat command from ERP system. But the problem is client doesn't want to have unencrypted payroll file on disk even for a moment (although they are already doing this with other files: save unencrypted -> encrypt -> delete unencrypted). So I have to write an app that will get data directly from ERP (that's not a problem), encrypt it using OpenSSL, and save encrypted file.</p>
  
  <p>I found a c# wrapper openssl-net: <a href="https://github.com/openssl-net/openssl-net" rel="nofollow">https://github.com/openssl-net/openssl-net</a></p>
  
  <p>To be honest I don't know how to achieve above OpenSSL smime des3 encryption using client certificate and that wrapper. Any help please? Documentation or something?</p>