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.
I received same error as OP: "System.Security.Cryptography.CryptographicException: keyset does not exist"
The resolution (for me) was: Visual Studio needs to be (run as Admin)
As was explained to me(YMMV), VS needs to be run as Admin in order to extract the certificates private key from the key store, in order to negotiate auth/handshake with keyvault.