[Mono-bugs] [Bug 75781][Nor] New - Problem with feeding pre-encoded X509 extensions into Mono

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Aug 11 05:08:42 EDT 2005


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 dgranath at gmail.com.

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

--- shadow/75781	2005-08-11 05:08:42.000000000 -0400
+++ shadow/75781.tmp.21639	2005-08-11 05:08:42.000000000 -0400
@@ -0,0 +1,34 @@
+Bug#: 75781
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Mono.Security
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: dgranath at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Problem with feeding pre-encoded X509 extensions into Mono
+
+If you feed the DER encoding of a X509 extension into the ext(ASN1)
+constructor, an error occurs when Mono, later, puts the extension back
+together.The extension value is then wrapped two times in an octet-string
+instead of just one.
+
+Example:
+
+1) construct key usage extension outside of MONO
+  ext = ...
+
+2) feed it to mono
+  Mono.Security.ASN1 asn1 = new Mono.Security.ASN1(ext)
+  monoExt = new MONO.X509.Extensions.KeyUsageExtension(asn1);
+
+3) get DER encoding of Mono extension
+  byte der = monoExt.ASN1.GetBytes()


More information about the mono-bugs mailing list