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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=79269 --- shadow/79269 2006-09-05 10:11:20.000000000 -0400 +++ shadow/79269.tmp.13784 2006-09-05 10:48:56.000000000 -0400 @@ -11,13 +11,13 @@ AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] QAContact: [EMAIL PROTECTED] TargetMilestone: --- URL: Cc: -Summary: [2.0] NRE in RSACryptoServiceProvider.Decrypt() for X509Certificate2.PrivateKey +Summary: [2.0] X509Certificate2.PrivateKey only contains the public key when loaded from a PKCS12 file The following code causes a NullReferenceException with the attached certificate. using System; using System.Security.Cryptography; @@ -115,6 +115,12 @@ @"YgyAhscnTTIcDeLJTZcOYYyHVxNhV6d03jeZYjq0sPMEsfCCbE/NcFyYHD9BTuiduqPplCLbGpfZIZYJ6vAP9m5z4Q9eEw79kmEFCsm8wSKEo/gKiptVpwQ78VOPrWd/wEkTTeeg2nVim3JIsTKGFlV7rKxIWQhGN9aAqgP8nZI="; byte [] bytes = Convert.FromBase64String (b64); csp.Decrypt (bytes, true); } } + +------- Additional Comments From [EMAIL PROTECTED] 2006-09-05 10:48 ------- +The NRE is fixed in SVN r64939 with new unit test in r64940. It will +now throw a CryptographicException saying that the private key is missing. + +Updating the bug summary for the second-half of the problem. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
