dotnet / dotnet/docs

Failed to authenticate HTTPS connection

Open
#55,898 0 comments 0 reactions 0 assignees View on GitHub
:watch: Not Triaged dotnet-fundamentals/svc
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
15h 21m
Merged PRs (30d)
370

Description

### 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](https://github.com/dotnet/docs/issues?q=is%3Aissue+is%3Aopen+19debb34-1672-c5bc-395b-2ec523c25b8f)

Contributor guide

Open the contributing guide

Research direction

Start with docs/core/additional-tools/self-signed-certificates-guide.md and follow the self-signed certificate steps from the linked page on the reported Ubuntu environment. Reproduce the HTTPS authentication failure, then verify the guide's instructions work or clearly explain the required correction.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.