I am trying to follow
http://msdn.microsoft.com/en-us/library/system.security.cryptography.x509certificates.x509certificate2.aspx but I am finding that the Private Key property of the certificate is always null. I created the certificate with makecert -pe -n "CN=BuySeasonsThirdParty"
-r -b 08/26/2010 -e 08/26/2011 -sky exchange Amazon.cer. Then installing it on the local user store using:
store = new
and using the same API to get the certificate from the store. The certificate that I retrieve from the store is non-null it is just the PrivateKey
is null. So I can encrypt using something like:
But since the Private Key property is NULL I cannot decrypt.
View Complete Post