Skip to content

Commit a15e233

Browse files
committed
Log "SslProtocol" after successful handshake
1 parent 9f06080 commit a15e233

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/Servers/Kestrel/Core/src/CoreStrings.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,4 +602,7 @@ For more information on configuring HTTPS see https://go.microsoft.com/fwlink/?l
602602
<data name="GreaterThanOrEqualToZeroRequired" xml:space="preserve">
603603
<value>A value greater than or equal to zero is required.</value>
604604
</data>
605+
<data name="HttpsConnectionEstablished" xml:space="preserve">
606+
<value>Connection "{connectionId}" established using the following protocol: {protocol}</value>
607+
</data>
605608
</root>

src/Servers/Kestrel/Core/src/Middleware/HttpsConnectionMiddleware.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ public async Task OnConnectionAsync(ConnectionContext context)
252252

253253
KestrelEventSource.Log.TlsHandshakeStop(context, feature);
254254

255+
_logger.LogDebug(3, CoreStrings.HttpsConnectionEstablished, context.ConnectionId, sslStream.SslProtocol);
256+
255257
var originalTransport = context.Transport;
256258

257259
try

0 commit comments

Comments
 (0)