title: openssl.net rsa encryption working example needed
body: <p>Does anybody have any working example of RSA encryption with <a href="http://openssl-net.sourceforge.net/" rel="nofollow noreferrer">OpenSSL.NET</a> ? I want to encrypt some data using private key stored in PEM format.</p>
  
  <p>I create a OpenSSL.Crypto.RSA object and want to use the PrivateEncrypt method, but it throws OpenSSLException with no additional data (empty Errors array, no inner exception). Before using the PrivateEncrypt method I fill all the properties (like PublicModulus, PrivateExponent etc) with data read from command
  openssl rsa -in private_key.pem -text -noout</p>
  
  <p>Does anybody know how to read the PEM file into OpenSSL.Crypto.RSA object or has any other working encryption example?</p>