[Mono-bugs] [Bug 61796][Nor] New - exception getting x509 certificate info

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 21 Jul 2004 15:51:21 -0400 (EDT)


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 mart@karu15.ee.

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

--- shadow/61796	2004-07-21 15:51:21.000000000 -0400
+++ shadow/61796.tmp.25966	2004-07-21 15:51:21.000000000 -0400
@@ -0,0 +1,35 @@
+Bug#: 61796
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System.Security
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: mart@karu15.ee               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: exception getting x509 certificate info
+
+In System.Security.Cryptography.X509Certificates.X509Certificate, when
+using CreateFromSignedFile () function to create new X509Certificate it
+return normally, but when calling any Get* function (ie. GetName ()) you get:
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object
+in <0x0000d>
+System.Security.Cryptography.X509Certificates.X509Certificate:GetName ()
+in <0x000a9> TestMain:Main (string[])
+
+Code and certificate should be attached.
+
+Generated the (self signed) certificate w/ openssl:
+openssl genrsa 1024 > JServ.key
+openssl req -new -x509 -nodes -sha1 -days 365 -key JServ.key > JServ.cert
+
+Maybe I generated the cert totally wrong, but it shouldn't throw that
+exception...