I have a BlazorWASM app that is dotnet5, I am using docker-compose to package this up into a container and using a docker image to build etc. It was working fine yesterday, however today when I try a build using this container image I get a raft of errors all relating to untrusted root certificates in the image.
fork this repo:
https://github.com/jonnychipz/JonnychipzBlazorWebApp
then run:
docker-compose up --build
You should see the raft of errors
JohnLunn@JONNYCHIPZ D:\Projects\BlazorDemo\JonnychipzBlazorWebApp master ≣ [13:38]
❯ docker-compose up --build
Building jonnychipzblazorwasm
Step 1/18 : FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base
5.0: Pulling from dotnet/aspnet
a076a628af6f: Already exists
e79f147a4676: Already exists
7bc0d28c13d1: Already exists
11e5d642ebb0: Already exists
3a71aeae63e7: Already exists
Digest: sha256:8758e3b970476add678a29ec0117cd0acd88cc9627558647338a2244d793d190
Status: Downloaded newer image for mcr.microsoft.com/dotnet/aspnet:5.0
---> 90d6c17b87c2
Step 2/18 : WORKDIR /app
---> Running in 5cd1ecfeac8b
Removing intermediate container 5cd1ecfeac8b
---> 3a3cfd8e7dd7
Step 3/18 : EXPOSE 80
---> Running in e0694eae9661
Removing intermediate container e0694eae9661
---> c48fb1ef0fbd
Step 4/18 : EXPOSE 443
---> Running in 133cbe1a40f0
a076a628af6f: Already exists
e79f147a4676: Already exists
7bc0d28c13d1: Already exists
11e5d642ebb0: Already exists
3a71aeae63e7: Already exists
0f7ac47860c2: Already exists
bd9408c060d0: Already exists
20c35303e243: Already exists
Digest: sha256:8f2dfc224a3c99b7ad9d497d536771146dee37778d53af40b3c21a0d5bcdec00
Status: Downloaded newer image for mcr.microsoft.com/dotnet/sdk:5.0
---> e735190c5cb9
Step 6/18 : WORKDIR /src
---> Running in 41ee096fc92b
Removing intermediate container 41ee096fc92b
---> d3d85fed1777
Step 7/18 : COPY ["server/JonnychipzBlazorWebApp.Server.csproj", "server/"]
---> 8f03c3474743
Step 8/18 : RUN dotnet restore "server/JonnychipzBlazorWebApp.Server.csproj"
---> Running in 9141583703d1
Determining projects to restore...
Skipping project "/src/client/JonnychipzBlazorWebApp.Client.csproj" because it was not found.
Skipping project "/src/client/JonnychipzBlazorWebApp.Client.csproj" because it was not found.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.Drawing.Common 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'System.Drawing.Common 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.Drawing.Common 4.7.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.Win32.SystemEvents 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'Microsoft.Win32.SystemEvents 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.Win32.SystemEvents 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.ComponentModel.Annotations 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate
in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'System.ComponentModel.Annotations 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.ComponentModel.Annotations 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.NETCore.Platforms 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'Microsoft.NETCore.Platforms 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.NETCore.Platforms 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in
certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.Collections.Immutable 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'System.Collections.Immutable 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.Collections.Immutable 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.CSharp 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'Microsoft.CSharp 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.CSharp 4.7.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.Extensions.Logging 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'Microsoft.Extensions.Logging 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.Extensions.Logging 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.Extensions.Caching.Memory 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'Microsoft.Extensions.Caching.Memory 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.Extensions.Caching.Memory 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.Runtime.Caching 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'System.Runtime.Caching 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature
validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.Runtime.Caching 4.7.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.IO.Packaging 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'System.IO.Packaging 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.IO.Packaging 4.7.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.Diagnostics.DiagnosticSource 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'System.Diagnostics.DiagnosticSource 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.Diagnostics.DiagnosticSource 4.7.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.OData.Core 7.7.3' from source 'https://api.nuget.org/v3/index.json': The author primary signature's
timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'Microsoft.OData.Core 7.7.3' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.OData.Core 7.7.3' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.IdentityModel.JsonWebTokens 6.8.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'Microsoft.IdentityModel.JsonWebTokens 6.8.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.IdentityModel.JsonWebTokens 6.8.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.Win32.Registry 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'Microsoft.Win32.Registry 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.Win32.Registry 4.7.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.Data.SqlClient.SNI.runtime 2.1.1' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'Microsoft.Data.SqlClient.SNI.runtime 2.1.1' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.Data.SqlClient.SNI.runtime 2.1.1' from source 'https://api.nuget.org/v3/index.json': The repository
countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.Security.Principal.Windows 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate
in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'System.Security.Principal.Windows 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.Security.Principal.Windows 4.7.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.IdentityModel.Protocols.OpenIdConnect 6.8.0' from source 'https://api.nuget.org/v3/index.json': The
author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'Microsoft.IdentityModel.Protocols.OpenIdConnect 6.8.0' from source 'https://api.nuget.org/v3/index.json': The
author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.IdentityModel.Protocols.OpenIdConnect 6.8.0' from source 'https://api.nuget.org/v3/index.json': The
repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.Extensions.Caching.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'Microsoft.Extensions.Caching.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.Extensions.Caching.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.Configuration.ConfigurationManager 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'System.Configuration.ConfigurationManager 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.Configuration.ConfigurationManager 4.7.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.Extensions.Configuration.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The
author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'Microsoft.Extensions.Configuration.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The
author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.Extensions.Configuration.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The
repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.Extensions.Options 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'Microsoft.Extensions.Options 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.Extensions.Options 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.Text.Encoding.CodePages 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in
certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'System.Text.Encoding.CodePages 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.Text.Encoding.CodePages 4.7.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate
in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.Extensions.DependencyInjection.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'Microsoft.Extensions.DependencyInjection.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.Extensions.DependencyInjection.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.Extensions.Logging.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'Microsoft.Extensions.Logging.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.Extensions.Logging.Abstractions 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.OData.Edm 7.7.3' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'Microsoft.OData.Edm 7.7.3' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.OData.Edm 7.7.3' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.Extensions.Primitives 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'Microsoft.Extensions.Primitives 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.Extensions.Primitives 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.Spatial
7.7.3' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'Microsoft.Spatial
7.7.3' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.Spatial
7.7.3' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's
timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.IdentityModel.Tokens.Jwt 6.8.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'System.IdentityModel.Tokens.Jwt 6.8.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.IdentityModel.Tokens.Jwt 6.8.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.IdentityModel.Tokens 6.8.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in
certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'Microsoft.IdentityModel.Tokens 6.8.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.IdentityModel.Tokens 6.8.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate
in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.Security.AccessControl 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'System.Security.AccessControl 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.Security.AccessControl 4.7.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.IdentityModel.Protocols 6.8.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate
in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'Microsoft.IdentityModel.Protocols 6.8.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.IdentityModel.Protocols 6.8.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.Identity.Client 4.21.1' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'Microsoft.Identity.Client 4.21.1' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.Identity.Client 4.21.1' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.NETCore.Platforms 3.1.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'Microsoft.NETCore.Platforms 3.1.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.NETCore.Platforms 3.1.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in
certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.Security.Cryptography.ProtectedData 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'System.Security.Cryptography.ProtectedData 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.Security.Cryptography.ProtectedData 4.7.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed
certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.Extensions.DependencyInjection 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author
primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'Microsoft.Extensions.DependencyInjection 5.0.0' from source 'https://api.nuget.org/v3/index.json': The author
primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.Security.Permissions 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.Extensions.DependencyInjection 5.0.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'System.Security.Permissions 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.Security.Permissions 4.7.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in
certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.Text.Json 4.6.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'System.Text.Json 4.6.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.Text.Json 4.6.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.IdentityModel.Logging 6.8.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'Microsoft.IdentityModel.Logging 6.8.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.IdentityModel.Logging 6.8.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.Windows.Extensions 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'System.Windows.Extensions 4.7.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.Windows.Extensions 4.7.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.Security.Cryptography.Cng 4.5.0' from source 'https://api.nuget.org/v3/index.json': The author primary
signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'System.Security.Cryptography.Cng 4.5.0' from source 'https://api.nuget.org/v3/index.json': The author primary
signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'System.Security.Cryptography.Cng 4.5.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.CSharp 4.5.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3037: Package 'Microsoft.CSharp 4.5.0' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
/src/server/JonnychipzBlazorWebApp.Server.csproj : error NU3028: Package 'Microsoft.CSharp 4.5.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
Failed to restore /src/server/JonnychipzBlazorWebApp.Server.csproj (in 6.91 sec).
ERROR: Service 'jonnychipzblazorwasm' failed to build : The command '/bin/sh -c dotnet restore "server/JonnychipzBlazorWebApp.Server.csproj"' returned a non-zero code: 1
JohnLunn@JONNYCHIPZ D:\Projects\BlazorDemo\JonnychipzBlazorWebApp master ≣ [13:38]
THESE ARE THE ERRORS
docker version❯ docker version
Client: Docker Engine - Community
Cloud integration: 1.0.7
Version: 20.10.2
API version: 1.41
Go version: go1.13.15
Git commit: 2291f61
Built: Mon Dec 28 16:14:16 2020
OS/Arch: windows/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.2
API version: 1.41 (minimum version 1.12)
Go version: go1.13.15
Git commit: 8891c58
Built: Mon Dec 28 16:15:28 2020
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.3
GitCommit: 269548fa27e0089a8b8278fc4fc781d7f65a939b
runc:
Version: 1.0.0-rc92
GitCommit: ff819c7e9184c13b7c2607fe6c30ae19403a7aff
docker-init:
Version: 0.19.0
GitCommit: de40ad0
docker info❯ docker info
Client:
Context: default
Debug Mode: false
Plugins:
app: Docker App (Docker Inc., v0.9.1-beta3)
buildx: Build with BuildKit (Docker Inc., v0.5.1-docker)
scan: Docker Scan (Docker Inc., v0.5.0)
Server:
Containers: 7
Running: 0
Paused: 0
Stopped: 7
Images: 9
Server Version: 20.10.2
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 1
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 269548fa27e0089a8b8278fc4fc781d7f65a939b
runc version: ff819c7e9184c13b7c2607fe6c30ae19403a7aff
init version: de40ad0
Security Options:
seccomp
Profile: default
Kernel Version: 4.19.128-microsoft-standard
Operating System: Docker Desktop
OSType: linux
Architecture: x86_64
CPUs: 24
Total Memory: 50.14GiB
Name: docker-desktop
ID: D3QJ:SVJE:MOMS:XSUK:ZU2S:J3MM:4BZI:DWTN:47OF:3PVB:GBVT:SPWD
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
WARNING: No blkio weight support
WARNING: No blkio weight_device support
WARNING: No blkio throttle.read_bps_device support
WARNING: No blkio throttle.write_bps_device support
WARNING: No blkio throttle.read_iops_device support
WARNING: No blkio throttle.write_iops_device support
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
Same as #2547 or https://github.com/NuGet/Home/issues/10491
thanks @Gounlaf hmmmm it appears that this is a widespread issue with cert renewals?!! MS or Nuget?!
Just tested it with netcore3 Docker image - there it is not prob. Only in net5.
thanks @Gounlaf hmmmm it appears that this is a widespread issue with cert renewals?!! MS or Nuget?!
Seems to be MS. Take a look at 10491 :)
I can reproduce this issue in private as well as public projects.
Normal restore works fine but as soon as you go into the docker build you will end up with the issues described above.
If you build a netcoreapp3.1 instead it worked fine for me.
So I guess there is something going on globally with the container image of dotnet/sdk:5.0
Same problem here, trying to build with docker results with the same errors as described by @jonnychipz.
Having the same problem here, going wrong at a local server and azure pipeline.
My Blazor App is .Net5 so cant use 3.1, but it looks like the ubuntu docker image mcr.microsoft.com/dotnet/sdk:5.0-focal is working fine for me!! (Im happy with that for now as this is only for build!
I can reproduce this issue in private as well as public projects.
Normal restore works fine but as soon as you go into the docker build you will end up with the issues described above.
If you build a netcoreapp3.1 instead it worked fine for me.So I guess there is something going on globally with the container image of dotnet/sdk:5.0
the ubuntu docker image mcr.microsoft.com/dotnet/sdk:5.0-focal is working fine for me!!
I am also facing this problem since 1 hour, And thought issue with my pipeline and wasted lots of time in that :P
So I guess there is something going on globally with the container image of dotnet/sdk:5.0
facing the same issue with mcr.microsoft.com/dotnet/sdk:5.0-buster-slim
I'm facing the same problem with mcr.microsoft.com/dotnet/sdk:5.0.102
I'm also getting this issue with mcr.microsoft.com/dotnet/sdk:5.0
Same issue here, yesterday it was all well. Started to break since morning.
Created a new vanilla ASP.Net Core web app with .Net Core 5.0 and enabled docker support. Then tried to build an image and it breaks in "dotnet restore" step.
docker build -t app .
[+] Building 20.0s (12/17)
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 32B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for mcr.microsoft.com/dotnet/sdk:5.0-buster-slim 6.7s
=> [internal] load metadata for mcr.microsoft.com/dotnet/aspnet:5.0-buster-slim 6.8s
=> [build 1/7] FROM mcr.microsoft.com/dotnet/sdk:5.0-buster-slim@sha256:4d45aba4e22037dae680cbb3cab9f168bd5db6285d1f15d60d0381b0895a3b27 0.0s
=> [base 1/2] FROM mcr.microsoft.com/dotnet/aspnet:5.0-buster-slim@sha256:8ae4a7adb6dcae0b8a7fd57498adb2414576c532aeb442349e9a1e8a40ffea60 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 2.79kB 0.0s
=> CACHED [base 2/2] WORKDIR /app 0.0s
=> CACHED [final 1/2] WORKDIR /app 0.0s
=> CACHED [build 2/7] WORKDIR /src 0.0s
=> CACHED [build 3/7] COPY [WebApplication2.csproj, ] 0.0s
=> ERROR [build 4/7] RUN dotnet restore "WebApplication2.csproj" 13.0s
------
> [build 4/7] RUN dotnet restore "WebApplication2.csproj":
#12 3.665 Determining projects to restore...
#12 12.77 /src/WebApplication2.csproj : error NU3028: Package 'Microsoft.VisualStudio.Azure.Containers.Tools.Targets 1.10.9' from source 'https://api.nuget.org/v3/index.json': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
#12 12.77 /src/WebApplication2.csproj : error NU3037: Package 'Microsoft.VisualStudio.Azure.Containers.Tools.Targets 1.10.9' from source 'https://api.nuget.org/v3/index.json': The author primary signature validity period has expired.
#12 12.77 /src/WebApplication2.csproj : error NU3028: Package 'Microsoft.VisualStudio.Azure.Containers.Tools.Targets 1.10.9' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
#12 12.84 Failed to restore /src/WebApplication2.csproj (in 8.76 sec).
------
executor failed running [/bin/sh -c dotnet restore "WebApplication2.csproj"]: exit code: 1
We used "mcr.microsoft.com/dotnet/sdk:5.0.102-alpine3.12-amd64" image and works fine with any packages
I am also having the same issue. It works with version net 3.1 Core but not with net 5.0.

I am also having the same issue. It works with version net 3.1 Core but not with net 5.0.
What are you using docker image? I suggest an image for that. It works fine
I have worked around this issue by using the mcd.Microsoft.com/dotnet/sdk:5.0-focal Ubuntu image in my Docker file so it now builds.
.NET Team released patch. You can look at here https://hub.docker.com/_/microsoft-dotnet-sdk?tab=description
I am also having the same issue. It works with version net 3.1 Core but not with net 5.0.
What are you using docker image? I suggest an image for that. It works fine
I am using mcr.microsoft.com/dotnet/aspnet:5.0-buster-slim for a Blazor Server app. The symptoms seems like they are the same issue.
Please follow the guidance at https://github.com/NuGet/Announcements/issues/49, and specifically the workaround for users of the .NET Docker images at https://github.com/NuGet/Announcements/issues/49#issuecomment-768766265.
Closing this as a duplicate of NuGet/Home#10491. Please follow the guidance at NuGet/Announcements#49, and specifically the workaround for users of the .NET Docker images at NuGet/Announcements#49 (comment).
i use this "mcr.microsoft.com/dotnet/sdk:5.0.102-alpine3.12-amd64" everything looks good
Most helpful comment
the ubuntu docker image mcr.microsoft.com/dotnet/sdk:5.0-focal is working fine for me!!