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)

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


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 34274 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

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