Decrypt with PrivateKey X.509 Certificate
问题 I have a problem to decrypt a message usgin X.509 Certificate. I generate my certificate with makecert with this options: makecert -r -pe -n "CN=MyCertificate" -ss CA -sr CurrentUser -a sha1 -sky signature -cy authority -sv CA.pvk CA.cer And the PrivateKey was "mypassword". My problem is when I want to decrypt a message encrypt with previous certificate in c#. I found this class http://blog.shutupandcode.net/?p=660, but in the X509Decrypt method allways the PrivateKey is null. public static