System.Security.Cryptography.CryptographicException: keyset does not exist

前端 未结 8 1467
时光取名叫无心
时光取名叫无心 2020-12-04 09:59

When I make x509 certificate to encypt and decypt message, I got some error information and could not fix this problem. Could someone ever happend to solve this bug? thanks.

8条回答
  •  春和景丽
    2020-12-04 10:57

    I did run into the same problem. The message is not ideal and in my case my user did not have permission to access the private key. You can fix this using these steps:

    1. Open mmc
    2. Add certificate snap-in
    3. select the certificate you want to use
    4. right click on it and select 'All Tasks' / 'Manage Private Keys...'
    5. Add your user to the list of authorized users and allow 'Full Control'

提交回复
热议问题