使用SSL从Linux推送私有NuGet存储库

时间:2017-02-10 16:45:14

标签: linux ssl nuget .net-core nexus

我目前正在尝试从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

我试过了:

  • 全局安装服务器证书(使用update-ca-certificates)
  • 使用certmgr安装证书

还有其他方法我错过了,或者这是在Linux中使用NuGet的已知问题。 (我正在使用docker容器,所以不希望解决方案是“使用windows”!)这是我们自动构建系统的一部分,所以我只限于Linux docker容器。

我的一个大学,运行Windows能够毫无问题地推送软件包,所以我知道这不是服务器的问题。

1 个答案:

答案 0 :(得分:0)

这是一个非常老的问题,但我碰到了这个问题,正在寻找答案。

问题似乎出在Mono is broken下的Nuget。

这不是一个真正的答案,但希望可以对其他人有所帮助。