Cannot find the requested object. when create X509certificate2
<p>I'm trying to create <strong>X509Certificate2</strong> with <code>private_key</code> string using the following code:</p>

<pre><code> byte[] key = Convert.FromBase64String(private_key);
 X509Certificate2 certificate = new X509Certificate2(key);
</code></pre>

<p>When the last line executes the following exception is thrown:</p>

<blockquote>
  <p>System.Security.Cryptography.CryptographicException Cannot find the requested object</p>
</blockquote>

<p>Does anybody know how to resolve this?</p>