CryptographicException “Key not valid for use in specified state.” while trying to export RSAParameters of a X509 private key

后端 未结 7 1636
悲&欢浪女
悲&欢浪女 2020-12-03 06:34

I am staring at this for quite a while and thanks to the MSDN documentation I cannot really figure out what\'s going. Basically I am loading a PFX file from the disc into a

7条回答
  •  醉酒成梦
    2020-12-03 07:15

    I've met some similar issue, and X509KeyStorageFlags.Exportable solved my problem.

提交回复
热议问题