Lets say we have a PC used to decrypt data using the RSACryptoServiceProvider.
The PC dies and we can no longer decrypt data because the public key used to encrypt data will not be any good on another PC (I think).
Is the only way to ensure successful decryption to export the public and private keys so if the PC goes down we can import the keys onto another PC and then we can decrypt data again.
If that’s the case where do you store the private key to ensure privacy?
There are products called Hardware Security Modules (HSMs) designed to provide secure and reliable key storage. Most of them have software to interface with windows Crypto APIs, so that for example your RSACryptoServiceProvider will transparently use the HSM.