The documentation for the .NET Crypto classes is very poor.
I beat my brains with the same problem and came to the same conclusion, although this is not indicated for those specified in the documents.
When you instantiate the RSA provider, you get a new key pair. If you provide a parameter object and name the key container, a new key pair will be saved there.
If you import the public key, it saves not !
Dan
DanRocksOn
source share