Hi!
VS Code 1.88.1 shows the lines when I am trying to run dotnet restore:
$ dotnet restore --interactive
Determining projects to restore...
/usr/lib/dotnet/sdk/8.0.107/NuGet.targets(156,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [/home/user/user.csproj]
/usr/lib/dotnet/sdk/8.0.107/NuGet.targets(156,5): error : The SSL connection could not be established, see inner exception. [/home/user/user.csproj]
/usr/lib/dotnet/sdk/8.0.107/NuGet.targets(156,5): error : The remote certificate is invalid because of errors in the certificate chain: PartialChain [/home/user/user.csproj]
Other info:
Version: 1.88.1
Commit: e170252f762678dec6ca2cc69aba1570769a5d39
Date: 2024-04-10T17:34:12.840Z
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Linux x64 6.5.0-42-generic
ПАКЕТ SDK ДЛЯ .NET:
Version: 8.0.107
Commit: 1bdaef7265
Workload version: 8.0.100-manifests.43c23f91

Среда выполнения:
OS Name: ubuntu
OS Version: 23.10
OS Platform: Linux
RID: ubuntu.23.10-x64
Base Path: /usr/lib/dotnet/sdk/8.0.107/

Установленные рабочие нагрузки .NET:
Workload version: 8.0.100-manifests.43c23f91
Нет установленных рабочих нагрузок для отображения.

Host:
Version: 8.0.7
Architecture: x64
Commit: 2aade6beb0

.NET SDKs installed:
8.0.107 [/usr/lib/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.7 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.7 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
dotnet command - .NET CLI | Microsoft Learn

Download .NET:
.NET Downloads (Linux, macOS, and Windows)
.csproj
<ProjectSdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>

Cannot find the solution. Please, help.