运行以下代码时的问题:
X509Certificate2 cert = new X509Certificate2(@"C:\file.p12", "password", X509KeyStorageFlags.Exportable);
RSACryptoServiceProvider crypt = (RSACryptoServiceProvider)cert.PrivateKey;
我收到以下错误:Keyset does not exist
。
我还没有将证书添加到商店,这是否需要能够访问私钥?