If I have encrypted RSA key in PKCS#8, can I somehow import it to RSACng
as CngKeyBlobFormat.Pkcs8PrivateBlob
? Or does this CngKeyBlobFormat.Pkcs
CNG understands how to decrypt encrypted PKCS#8, but you need to give it a password. Since .NET doesn't ask you for the password (and it gets passed via a manner other than the properties) there isn't a good way to do it.
Your options are pretty much:
See also: Digital signature in c# without using BouncyCastle