X509Certificate2获取PrivateKey提示“提供类型失败”
不明白原因,我是参考的下面的源代码对软件进行数字签名,但是不知道为什么,这份代码总是有这个问题
http://web3.codeproject.com/Articles/996001/A-Ready-To-Use-Software-Licensing-Solution-in-Csha?msg=5179035#xx5179035xx
why throw this error when generate lic?
RSACryptoServiceProvider rsaKey = (RSACryptoServiceProvider)cert.PrivateKey;
Provides an invalid program type!!!
how to slove this problem? |