[Mono-bugs] [Bug 66929][Nor] Changed - ssl doesn't work with tomcat and java

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 29 Sep 2004 16:22:59 -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 james@ximian.com.

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

--- shadow/66929	2004-09-29 15:49:59.000000000 -0400
+++ shadow/66929.tmp.17995	2004-09-29 16:22:59.000000000 -0400
@@ -1,13 +1,13 @@
 Bug#: 66929
 Product: Mono: Class Libraries
 Version: unspecified
 OS: All
 OS Details: 
-Status: RESOLVED   
-Resolution: FIXED
+Status: REOPENED   
+Resolution: 
 Severity: Unknown
 Priority: Normal
 Component: CORLIB
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: tambet@ximian.com               
 QAContact: mono-bugs@ximian.com
@@ -131,6 +131,73 @@
 problem in the key exchange (buffer too small). Fx "only supports"
 multiple of 8 bits for key size - however this means that smaller
 numbers are "promoted"
 
 Fixed in HEAD.
 Will apply in MONO-1-0 after validation.
+
+------- Additional Comments From james@ximian.com  2004-09-29 16:22 -------
+I've applied Sebastien's patch to my mono-1-0 tree, and I'm getting
+the same exception (I think).  I put a Console.WriteLine() in the
+patch affected, and it did indeed up the KeySize to 1024.
+
+System.IO.IOException: The authentication or decryption has failed:
+System.ArgumentOutOfRangeException: Non-negative number required.
+Parameter name: destOffset
+in [0x00059] (at
+/home/snorp/cvs/ximian/mcs/class/corlib/System/Buffer.cs:93)
+System.Buffer:BlockCopy (System.Array,int,System.Array,int,int)
+in [0x00014] (at
+/home/snorp/cvs/ximian/mcs/class/corlib/Mono.Security.Cryptography/PKCS1.cs:104)
+Mono.Security.Cryptography.PKCS1:I2OSP (byte[],int)
+in [0x00076] (at
+/home/snorp/cvs/ximian/mcs/class/corlib/Mono.Security.Cryptography/PKCS1.cs:250)
+Mono.Security.Cryptography.PKCS1:Encrypt_v15
+(System.Security.Cryptography.RSA,System.Security.Cryptography.RandomNumberGenerator,byte[])
+in [0x00023] (at
+/home/snorp/cvs/ximian/mcs/class/corlib/System.Security.Cryptography/RSAPKCS1KeyExchangeFormatter.cs:73)
+System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter:CreateKeyExchange
+(byte[])
+in [0x00063] (at
+/home/snorp/cvs/ximian/mcs/class/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsClientKeyExchange.cs:104)
+Mono.Security.Protocol.Tls.Handshake.Client.TlsClientKeyExchange:ProcessAsTls1
+()
+in [0x00038] (at
+/home/snorp/cvs/ximian/mcs/class/Mono.Security/Mono.Security.Protocol.Tls.Handshake/HandshakeMessage.cs:105)
+Mono.Security.Protocol.Tls.Handshake.HandshakeMessage:Process ()
+in <0x0004f> (wrapper remoting-invoke-with-check)
+Mono.Security.Protocol.Tls.Handshake.HandshakeMessage:Process ()
+in [0x00009] (at
+/home/snorp/cvs/ximian/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/ClientRecordProtocol.cs:78)
+Mono.Security.Protocol.Tls.ClientRecordProtocol:SendRecord
+(Mono.Security.Protocol.Tls.Handshake.HandshakeType)
+in [0x00097] (at
+/home/snorp/cvs/ximian/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs:736)
+Mono.Security.Protocol.Tls.SslClientStream:NegotiateHandshake ()
+ 
+in [0x00157] (at
+/home/snorp/cvs/ximian/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs:772)
+Mono.Security.Protocol.Tls.SslClientStream:NegotiateHandshake ()
+in <0x0004f> (wrapper remoting-invoke-with-check)
+Mono.Security.Protocol.Tls.SslClientStream:NegotiateHandshake ()
+in [0x0007e] (at
+/home/snorp/cvs/ximian/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs:557)
+Mono.Security.Protocol.Tls.SslClientStream:BeginWrite
+(byte[],int,int,System.AsyncCallback,object)
+in [0x00006] (at
+/home/snorp/cvs/ximian/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs:656)
+Mono.Security.Protocol.Tls.SslClientStream:Write (byte[],int,int)
+in [0x00056] (at
+/home/snorp/cvs/ximian/mcs/class/corlib/System.IO/StreamWriter.cs:204)
+System.IO.StreamWriter:FlushBytes ()
+in <0x0004f> (wrapper remoting-invoke-with-check)
+System.IO.StreamWriter:FlushBytes ()
+in [0x00029] (at
+/home/snorp/cvs/ximian/mcs/class/corlib/System.IO/StreamWriter.cs:185)
+System.IO.StreamWriter:Flush ()
+in [0x000c9] (at
+/home/snorp/cvs/ximian/mcs/class/Mono.Security/Test/tools/tlstest/tlstest.cs:213)
+TlsTest:GetStreamPage (string)
+in [0x0027d] (at
+/home/snorp/cvs/ximian/mcs/class/Mono.Security/Test/tools/tlstest/tlstest.cs:152)
+TlsTest:Main (string[])
+