我目前正在尝试从Linux构建机器(dotnet核心项目)向我们的本地Nexus服务器部署NuGet包
但是,Nexus服务器在HTTPS上运行,并且公司域证书无法被我的构建计算机识别。
当我运行nuget push
时,我收到以下错误:
Pushing App.1.0.0.nupkg to 'https://v-nexus/repository/nuget/'...
PUT https://v-nexus/repository/nuget/
An error was encountered when fetching 'PUT https://v-nexus/repository/nuget/'. The request will now be retried.
Error: TrustFailure (The authentication or decryption has failed.)
The authentication or decryption has failed.
Invalid certificate received from server. Error code: 0xffffffff800b010a
PUT https://v-nexus/repository/nuget/
An error was encountered when fetching 'PUT https://v-nexus/repository/nuget/'. The request will now be retried.
Error: TrustFailure (The authentication or decryption has failed.)
The authentication or decryption has failed.
Invalid certificate received from server. Error code: 0xffffffff800b010a
PUT https://v-nexus/repository/nuget/
Error: TrustFailure (The authentication or decryption has failed.)
The authentication or decryption has failed.
Invalid certificate received from server. Error code: 0xffffffff800b010a
我试过了:
还有其他方法我错过了,或者这是在Linux中使用NuGet的已知问题。 (我正在使用docker容器,所以不希望解决方案是“使用windows”!)这是我们自动构建系统的一部分,所以我只限于Linux docker容器。
我的一个大学,运行Windows能够毫无问题地推送软件包,所以我知道这不是服务器的问题。
答案 0 :(得分:0)