“Bad key” exception for certificates with exportable private key

前端 未结 1 2126
不知归路
不知归路 2021-02-19 09:28

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:27

    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)
提交回复
热议问题