When trying out SSL in ASP.NET Core I see the following in the logging output:
fail: Microsoft.AspNetCore.Server.Kestrel[0]
Uncaught exception from the PrepareRequest method of an IAdaptedConnection.
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'SslStream'.
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Net.Security.SslState.CheckThrow(Boolean authSuccessCheck, Boolean shutdownCheck)
at System.Net.Security.SslStream.get_RemoteCertificate()
at Microsoft.AspNetCore.Server.Kestrel.Https.HttpsConnectionAdapter.HttpsAdaptedConnection.PrepareRequest(IFeatureCollection requestFeatures)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Frame.Reset()
When trying out SSL in ASP.NET Core I see the following in the logging output:
Sample app here: https://github.com/danroth27/active-directory-dotnet-webapp-openidconnect-aspnetcore-b2c/tree/danroth27/aspnetcore2