[Mono-bugs] [Bug 62716][Blo] Changed - SslServerStream doesn't work properly
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 10 Aug 2004 12:38:56 -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 meddochat@zonnet.nl.
http://bugzilla.ximian.com/show_bug.cgi?id=62716
--- shadow/62716 2004-08-10 11:26:24.000000000 -0400
+++ shadow/62716.tmp.24327 2004-08-10 12:38:56.000000000 -0400
@@ -132,6 +132,41 @@
The problem is that PKCS12.GetAttributes returns an empty hashlist
------- Additional Comments From sebastien@ximian.com 2004-08-10 11:26 -------
Can you try to build a smaller sample ?
I.e. without requiring CVS access and Nant.
Thanks
+
+------- Additional Comments From meddochat@zonnet.nl 2004-08-10 12:38 -------
+Compact example:
+
+--- begin source.cs ---
+using System;
+using System.Security.Cryptography;
+using System.Security.Cryptography.X509Certificates;
+using MSX = Mono.Security.X509;
+
+class test
+{
+ static void Main()
+ {
+ MSX.PKCS12 Temp = new MSX.PKCS12();
+ X509Certificate MyCert = X509Certificate.CreateFromCertFile
+ ("mycertificate.cer");
+ Temp.AddCertificate(new MSX.X509Certificate
+ (MyCert.GetRawCertData()));
+ if (Temp.GetAsymmetricAlgorithm(Temp.GetAttributes(new
+ MSX.X509Certificate(MyCert.GetRawCertData())))
+ == null)
+ {
+ Console.WriteLine("No AssymetricAlgorithm!");
+ }
+ }
+}
+--- end source.cs ---
+
+compile this source file using:
+
+[mcs|csc] /r:Mono.Security.dll source.csc
+
+then execute and you will see that it writes "No
+AssymetricAlgorithm!" to the console.