[Mono-bugs] [Bug 72742][Wis] New - RSACryptoServiceProvider fails to persist via CspProviderFlags.UseMachineKeyStore

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 18 Feb 2005 16:17:29 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by met@uberstats.com.

http://bugzilla.ximian.com/show_bug.cgi?id=72742

--- shadow/72742	2005-02-18 16:17:29.000000000 -0500
+++ shadow/72742.tmp.22798	2005-02-18 16:17:29.000000000 -0500
@@ -0,0 +1,43 @@
+Bug#: 72742
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: Fedora Core 3
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System.Security
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: met@uberstats.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: RSACryptoServiceProvider fails to persist via CspProviderFlags.UseMachineKeyStore
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+1. Install Mono (mine is not in default /usr but rather /usr/local/mono)
+2. Try to persist RSA via CspProviderFlags.UseMachineKeyStore
+
+Actual Results:
+Unhandled Exception: System.Security.Cryptography.CryptographicException:
+Could not create machine key store '/usr/share/.mono/keypairs'. --->
+System.UnauthorizedAccessException: Access to the path "/usr/share/.mono"
+is denied.
+
+Expected Results:
+Key pair being saved somewhere quitely
+
+How often does this happen? 
+Everytime unless I create the directory.
+
+Additional Information:
+The quick fix was to create /usr/share/.mono and /usr/share/.mono/keypairs
+as it didn't try and create them.  But the thing to note is my installation
+prefix is /usr/local/mono so /usr/share/.mono doesn't seem right either way.