Description
Update: A final resolution to this issue has been posted at dotnet/core#9285.
Description
HTTPS requests from .NET are failing on Ubuntu 24.04 Noble on ARM32 due to bundled certs "NotTimeValid" errors.
I believe this may be because 24.04 has migrated to 64-bit time. The OpenSSL package has changed from libssl3
to libssl3t64
.
Reproduction Steps
dotnet new console
dotnet add package System.Text.Json
- .NET will try to restore the package from NuGet.org and fail with the error under "Actual behavior" below.
I created this repro Dockerfile. It may or may not work since I had issues with it on my AMD64 dev machine. No easy way for me to test this currently outside of our official .NET Container image builds. With some trial and error you can probably get the issue to repro on a real arm32 machine using Docker. https://gist.github.com/lbussell/52e0ac904108d238d0e511f8b6ec89e1
Expected behavior
The .NET CLI should successfully access NuGet.org.
Actual behavior
From our PR validation in .NET Docker: https://dev.azure.com/dnceng-public/public/_build/results?buildId=652911&view=logs&j=7bc65791-3246-5ca2-874f-59d2e579cf6b&t=08651ed6-ba3f-5f8a-52df-50083ac157c2&l=942
#10 2.407 info : X.509 certificate chain validation will use the fallback certificate bundle at '/usr/share/dotnet/sdk/8.0.204/trustedroots/codesignctl.pem'.
#10 2.491 info : X.509 certificate chain validation will use the fallback certificate bundle at '/usr/share/dotnet/sdk/8.0.204/trustedroots/timestampctl.pem'.
#10 2.494 info : Adding PackageReference for package 'foo' into project '/source/app/app.csproj'.
#10 8.602 error: Unable to load the service index for source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json.
#10 8.602 error: The SSL connection could not be established, see inner exception.
#10 8.602 error: The remote certificate is invalid because of errors in the certificate chain: NotTimeValid
Regression?
No response
Known Workarounds
No response
Configuration
- .NET Runtime: 8.0.4 and 9.0.0-preview.4.24218.7
- OS: Ubuntu 24.04 "Noble"
- Arch: ARM
- Do you know whether it is specific to that configuration? Yes it is specific to this config. Likely affects older .NET versions as well.
Other information
Discovered in dotnet/dotnet-docker#5241
Known build error template
Build Information
Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=674655&view=results
Build error leg or test failing:
Pull request:
Error Message
Fill the error message using step by step known issues guidance.
{
"ErrorMessage": ["arm32v7", "The remote certificate is invalid because of errors in the certificate chain: NotTimeValid"],
"ErrorPattern": "",
"BuildRetry": false,
"ExcludeConsoleLog": false
}
Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=674655
Error message validated: [arm32v7 The remote certificate is invalid because of errors in the certificate chain: NotTimeValid
]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 5/16/2024 3:23:33 PM UTC
Report
Build | Definition | Test | Pull Request |
---|---|---|---|
674655 | dotnet/runtime | System.Net.WebSockets.Client.Tests.ArraySegmentSendReceiveTest.ReceiveAsync_MultipleOutstandingReceiveOperations_Throws |
Summary
24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
---|---|---|
0 | 0 | 1 |
Metadata
Metadata
Assignees
Type
Projects
Status