Bug 34274 - Not possible to establish ssl connection to mono server after ssl connection to ms.net server on same host
Summary: Not possible to establish ssl connection to mono server after ssl connection ...
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System (show other bugs)
Version: 4.0.0
Hardware: PC Windows
: --- normal
Target Milestone: Untriaged
Assignee: Martin Baulig
URL:
Depends on:
Blocks:
 
Reported: 2015-09-25 07:09 UTC by jungkunz
Modified: 2017-04-04 13:10 UTC (History)
2 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
MonoSSLBug Example VS2013 Project (10.30 KB, application/x-zip-compressed)
2015-09-25 07:09 UTC, jungkunz
Details

Description jungkunz 2015-09-25 07:09:28 UTC
Created attachment 13071 [details]
MonoSSLBug Example VS2013 Project

Description of Problem: 
It is not possible to establish a ssl connection to a mono server after establishing a ssl connection to a ms.net server on the same host

Steps to reproduce the problem:
- start server with ms.net runtime "example: host: localhost port: 7102"
- start server with mono runtime "example: host: localhost port: 7103"
- start client with mono runtime
-- establish a ssl connection to server started with ms.net runtime"example: host: localhost port: 7102"
-- close connection
-- establish a ssl connection to server started with mono runtime "example: host: localhost port: 7103"
-- Exception
accept failed System.IO.IOException: The authentication or decryption has failed
. ---> System.IO.IOException: Error while sending TLS Alert (Fatal:InternalError
): System.IO.IOException: Read failure ---> System.Net.Sockets.SocketException:
Eine vorhandene Verbindung wurde vom Remotehost geschlossen.

  at System.Net.Sockets.Socket.Receive (System.Byte[] buffer, Int32 offset, Int3
2 size, SocketFlags flags) [0x00000] in <filename unknown>:0
  at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset,
Int32 size) [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset,
Int32 size) [0x00000] in <filename unknown>:0
  at Mono.Security.Protocol.Tls.RecordProtocol.ReceiveRecord (System.IO.Stream r
ecord) [0x00000] in <filename unknown>:0
  at Mono.Security.Protocol.Tls.SslServerStream.EndNegotiateHandshake (IAsyncRes
ult asyncResult) [0x00000] in <filename unknown>:0
  at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (IAsyncResu
lt asyncResult) [0x00000] in <filename unknown>:0  ---> System.IO.IOException: R
ead failure ---> System.Net.Sockets.SocketException: Eine vorhandene Verbindung
wurde vom Remotehost geschlossen.

  at System.Net.Sockets.Socket.Receive (System.Byte[] buffer, Int32 offset, Int3
2 size, SocketFlags flags) [0x00000] in <filename unknown>:0
  at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset,
Int32 size) [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset,
Int32 size) [0x00000] in <filename unknown>:0
  at Mono.Security.Protocol.Tls.RecordProtocol.ReceiveRecord (System.IO.Stream r
ecord) [0x00000] in <filename unknown>:0
  at Mono.Security.Protocol.Tls.SslServerStream.EndNegotiateHandshake (IAsyncRes
ult asyncResult) [0x00000] in <filename unknown>:0
  at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (IAsyncResu
lt asyncResult) [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  --- End of inner exception stack trace ---
  at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (IAsyncResu
lt asyncResult) [0x00000] in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] i
n <filename unknown>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Thre
ading.Tasks.Task task) [0x00000] in <filename unknown>:0
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNoti
fication (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.T
asks.Task task) [0x00000] in <filename unknown>:0
  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <file
name unknown>:0
  at MonoSSLBug.Server.Program+<StartServer>d__0.MoveNext () [0x00000] in <filen
ame unknown>:0

Note You need to log in before you can comment on or make changes to this bug.