title: How to export non-exportable private key from store
body: <p>I need to export private key from Windows store. What should I do if the key is marked as non-exportable? I know that it is possible, program jailbreak can export this key.</p>
  
  <p>To export key I use <code>Org.BouncyCastle.Security.DotNetUtilities.GetKeyPair()</code> that exports key from <code>(RSACryptoServiceProvider)cryptoProv.ExportParameters(true)</code>. Exported key I use in <code>Org.BouncyCastle.Cms.CmsSignedDataGenerator</code> for CMS signature.</p>
  
  <p>I need solution for .Net, but any solution will be useful. Thank you.</p>