The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
今天打包编译的时候出现错误"The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain"
其原因是debian的dotnet sdk镜像证书链出现问题,
github针对此问题的讨论issue: NuGet restore failing on .NET 5 for Debian-based OSes (CA trust changed) · Issue #10491 · NuGet/Home (github.com)
我的解决办法:
按照 dsaul的说明, https://github.com/NuGet/Home/issues/10491#issuecomment-768687027
我打包了新的sdk镜像: https://hub.docker.com/repository/docker/agilelabsnet/dotnet-sdk
docker push agilelabsnet/dotnet-sdk:5.0
Dockerfile: https://github.com/DukeCheng/dotnet-docker-cst/blob/main/5.0/sdk/buster-slim/amd64/Dockerfile
Dockerfile Github仓库: https://github.com/DukeCheng/dotnet-docker-cst