“Bad key” exception for certificates with exportable private key

前端 未结 1 1643
甜味超标
甜味超标 2021-02-19 09:46

I am trying to encrypt and then decrypt files using asymmetric encryption. I\'ve created a test certificate using makecert and installed it into my personal localmachine store.

相关标签:
1条回答
  • 2021-02-19 10:11

    Ensure that the key you're using was created with "-sky Exchange" if using makecert.exe. Without this, you can only use the key for signing and authentication, not encryption/decryption which is the use case you're implementing here.

    0 讨论(0)
提交回复
热议问题