Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用SSL从Linux推送到私有NuGet存储库_Linux_Ssl_Nuget_.net Core_Nexus - Fatal编程技术网

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

使用SSL从Linux推送到私有NuGet存储库,linux,ssl,nuget,.net-core,nexus,Linux,Ssl,Nuget,.net Core,Nexus,我目前正在尝试从Linux构建机器(dotnet核心项目)将NuGet包部署到本地Nexus服务器 但是,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 whe

我目前正在尝试从Linux构建机器(dotnet核心项目)将NuGet包部署到本地Nexus服务器

但是,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
我试过:

  • 全局安装服务器证书(使用更新ca证书)
  • 使用certmgr安装证书
有没有其他我错过的方法,或者在Linux中使用NuGet时这是一个已知的问题。(我使用docker容器,所以不希望解决方案是“使用windows”!)这是我们自动构建系统的一部分,因此我仅限于Linux docker容器


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

这是一个非常古老的问题,但我偶然发现它,希望找到这个问题的答案

问题似乎是在Mono下的Nuget


这不是一个真正的答案,但希望它能帮助其他人。

您是否尝试过
mozroot--import--sync
?还要检查
ca证书
包。如果您使用的是最新的.NET Core CLI(1.0.0-rc4),则可以改用
dotnet nuget push
nuget push
是由Mono提供的nuget的第三方实现
dotnet nuget push
official,由Microsoft创建。感谢您的指点。原来我是在尝试使用域控制器的证书,而不是CA证书。duh!:)