Skip to content

Failed to authenticate HTTPS connection #55898

Description

@khteh

Type of issue

Code does not work (https://learn.microsoft.com/en-us/dotnet/core/additional-tools/self-signed-certificates-guide#with-openssl)

Description


{"@timestamp":"2026-09-07T14:27:11.4263787+08:00","log.level":"Debug","message":"Failed to authenticate HTTPS connection.","ecs.version":"9.0.0","log":{"logger":"Microsoft.AspNetCore.Server.Kestrel.Https.Internal.HttpsConnectionMiddleware"},"labels":{"MessageTemplate":"Failed to authenticate HTTPS connection.","ConnectionId":"0HNOCL46D0GN7"},"agent":{"type":"Elastic.CommonSchema.Serilog","version":"9.0.0+608d9254e808806db6cd119e9af00ab7ae9402c2"},"error":{"message":"Received an unexpected EOF or 0 bytes from the transport stream.","stack_trace":"System.IO.IOException: Received an unexpected EOF or 0 bytes from the transport stream.\n   at System.Net.Security.SslStream.ReceiveHandshakeFrameAsync[TIOAdapter](CancellationToken cancellationToken)\n   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean receiveFirst, Byte[] reAuthenticationData, CancellationToken cancellationToken)\n   at Microsoft.AspNetCore.Server.Kestrel.Https.Internal.HttpsConnectionMiddleware.OnConnectionAsync(ConnectionContext context)","type":"System.IO.IOException"},"event":{"action":"AuthenticationFailed","code":"1","created":"2026-09-07T14:27:11.4263787+08:00","severity":1,"timezone":"Singapore Standard Time"},"host":{"os":{"full":"Ubuntu 26.04.1 LTS","platform":"Unix","version":"7.0.0.31"},"architecture":"X64","hostname":"khteh-p17-2i"},"process":{"name":"dotnet","pid":741778,"thread.id":13,"thread.name":".NET TP Worker","title":""},"service":{"name":"Web.Api","type":"dotnet","version":"1.0.0+0ed27246b6c6429d8a0927d4098a519556e385e7"},"user":{"domain":"khteh-p17-2i","name":"khteh"},"metadata":{"ExceptionDetail":{"Type":"System.IO.IOException","HResult":-2146232800,"Message":"Received an unexpected EOF or 0 bytes from the transport stream.","Source":"System.Net.Security","TargetSite":"Void MoveNext()"},"MemoryUsage":195117056}}

Page URL

https://learn.microsoft.com/en-us/dotnet/core/additional-tools/self-signed-certificates-guide

Content source URL

https://github.com/dotnet/docs/blob/main/docs/core/additional-tools/self-signed-certificates-guide.md

Document Version Independent Id

19debb34-1672-c5bc-395b-2ec523c25b8f

Platform Id

19f0575d-c352-274f-8884-7bb465911a92

Article author

@angee

Metadata

  • ID: 129ac9c9-bab2-7ae0-75f8-cf3b7ad16a56
  • PlatformId: 19f0575d-c352-274f-8884-7bb465911a92
  • Service: dotnet-fundamentals

Related Issues

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions