Docker Community Forums

Share and learn in the Docker community.

Help fixing build build "error NU3028: Package" "UntrustedRoot: self signed certificate in certificate chain"

Hi all, I’ve had a project which was all working completely fine, but then I restructured the project to add in unit tests and moved all the main source and the docker file down a level in the repository.


Once I’d resolved the new paths, I’m now getting errors which sound like certificate errors when nuget is trying to pull the dependecies:

Step 9/18 : RUN dotnet restore "SynoAI.csproj"

---> Running in c0d0e881f60b

Determining projects to restore...

/src/SynoAI.csproj : error NU3028: Package 'Microsoft.OpenApi 1.2.3' from source '': The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain

/src/SynoAI.csproj : error NU3037: Package 'Microsoft.OpenApi 1.2.3' from source '': The author primary signature validity period has expired.

I can build and run the docker image locally, it just seems to break when building inside DockerHub.

My “latest” tag pulls from the “main” branch. Dockerfile location is set to Dockerfile and the path is set to /SynoAI/.

I’ve tried deleting the latest tag and recreating it, but it made no difference. I also tried disabling build caching and got the same issue.

1 Like

same issue :sweat_smile:

Same issue after you’ve restructured your project, or is this a DockerHub wide issue at the moment?

Same issue here, not being able to build the project on local or on Azure Devops Pipelines.

Problems from : NuGet | Status

1 Like

I have the same issue.

Same here. Maybe related to this:,the%20end%20of%20January%202021.?

Looks like there is a workaround for now:

Using the base image seems to do the trick

Official issue thread here

After switching to focal, I now get:

Step 13/18 : FROM build AS publish

pull access denied for build, repository does not exist or may require ‘docker login’: denied: requested access to the resource is denied

EDIT: I’d missed one of the -focal suffixes on the first occurrence of I’d also missed “AS build” after changing the URL. All working now with -focal.

Here is all possible solution added The author primary signature’s timestamp found a chain building issue: UntrustedRoot: self-signed certificate in certificate chain