Thanks to visit codestin.com
Credit goes to github.com

Skip to content

CspProviderFlags.UseMachineKeyStore should throw PlatformNotSupportedException #12822

@grendello

Description

@grendello

Developer Community issue: https://developercommunity.visualstudio.com/content/problem/414091/systemunauthorizedaccessexception-access-to-the-pa.html

Original post:

I am getting the UnathorizedAccessException while using Cryptographic provider with 2048 Key size.

below line procudes the exception in Xamarin Android.
using (RSACryptoServiceProvider rsa2048 = new RSACryptoServiceProvider(2048, m_Csp2048))


Error Message : System.Security.Cryptography.CryptographicException: Could not create machine key store '/usr/share/.mono/keypairs'. ---> System.UnauthorizedAccessException: Access to the path "/usr" is denied.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions