title: C# (.NET) RSACryptoServiceProvider import/export x509 public key blob and PKCS8 private key blob
body: <p>first of all let me state that I'm not a crypto expert but i know the basics.</p>
  
  <p>I want to be able to:</p>
  
  <ol>
  <li>Get a RSACryptoServiceProvider instance from a X509 Public Key blob</li>
  <li>Get a RSACryptoServiceProvider instance from a PKCS8 Private Key blob</li>
  <li>Export the public key from a RSACryptoServiceProvider instance as a x509 Public Key blob</li>
  <li>Export the private key from a RSACryptoServiceProvider instance as a PKCS8 blob</li>
  </ol>