title: The data to be decrypted exceeds the maximum for this modulus of 128 bytes. RSA DECRYPTION c#
body: <p>i do not know how to solve this exception while decrypting a file using private key from a X509 certificate.
  "The data to be decrypted exceeds the maximum for this modulus of 128 bytes."</p>
  
  <pre><code>byte[] data = File.ReadAllBytes("F:\\enc test\\file1.txt");
  X509Certificate2 cer = new X509Certificate2(
      "E:\\fileManagementSrvc\\certificate\\cerpfx.pfx", "12345",
      X509KeyStorageFlags.Exportable | X509KeyStorageFlags.PersistKeySet);
  RSACryptoServiceProvider rsa = (RSACryptoServiceProvider)cer.PrivateKey;
  
  byte[] d = rsa.Decrypt(data, false); //GETTING THE EXCEPTION HERE
  string s = Encoding.Default.GetString(d);
  </code></pre>