Closed weirdyang closed 1 year ago
HI @weirdyang
are you getting it on Azure? Or locally on your dev machine?
Locally on my dev machine. When I switch it to X509KeyStorageFlags.EphemeralKeySet
, it works. Does that mean I need to install the certs on the machine that is going to do the decryption?
https://github.com/dotnet/runtime/issues/19774#issuecomment-295366419 is it shedding some light on root cause?
You can try to use JWK to distribute keys, though it sill using same low level machinery under the hood, but may work probably.
Thanks! No wonder it works on the linux vm when deployed.
Hi,
I'm trying to encode and decode a JWT using the same certificate, but am getting this error during decoding:
Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException : Access denied.
What is causing this error?
Here's my code