使用SSL从Linux推送到私有NuGet存储库
我目前正在尝试从Linux构建机器(dotnet核心项目)将NuGet包部署到本地Nexus服务器 但是,Nexus服务器在HTTPS上运行,带有我的生成计算机无法识别的公司域证书 当我运行使用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
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安装证书
我的一所大学,运行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!:)