我正在尝试使用在StackOverflow上发布的解决方案将证书注册为受信任的。它是我们公司nexus存储库的非root证书:
FROM microsoft/dotnet:2.1-sdk AS build-env
COPY ./nexus.swimlane.local.crt /usr/local/share/ca-certificates/
RUN update-ca-certificates
但我一直得到这个奇怪的错误 - 注意它说* .pem而不是复制* .crt:
Step 5/20 : RUN update-ca-certificates
---> Running in 122a7bba0f2e
Updating certificates in /etc/ssl/certs...
WARNING: nexus.swimlane.local.pem does not contain a certificate or CRL: skipping
1 added, 0 removed; done.
它说它已经添加了,但它也说过了。毋庸置疑,它的目的不是为了它的目的:
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nexus.swimlane.local/repository/nuget/FindPackagesById()?id='QSwagGenerator'&semVerLevel=2.0.0'.
The SSL connection could not be established, see inner exception.
The remote certificate is invalid according to the validation procedure.
任何人都可以提供帮助或提供任何指示吗?