繁体   English   中英

VSTS dotnet 恢复公司(或自签名)证书问题

[英]VSTS dotnet restore corporate (or self-signed) certificate issue

我正在构建步骤过程中尝试dotnet restore命令。 我的 nuget 商店在 Artifactory。 尽管安装了公司证书,但我遇到了 SSL 问题。 我的 VSTS 代理在 kubernetes 上的 Ubuntu 容器中运行

Retrying 'FindPackagesByIdAsyncCore' for source 'https://<artifactory url>/nuget/FindPackagesById()?id='Client.HostingStartup'&semVerLevel=2.0.0'.
   The SSL connection could not be established, see inner exception.
   The remote certificate is invalid according to the validation procedure.

System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.

我们是否需要为 VSTS 代理执行任何附加步骤来获取自签名证书?

如果通过在托管 VSTS 代理的 ubuntu 容器中安装公司证书无法正常工作。 您可以尝试以下解决方法:

1、创建Nuget 服务连接对Artifactory nuget服务器进行认证。

您可以通过在dotnet restore task中添加新的Credentials for feeds...来创建服务连接。 见下文:单击+ New

在此处输入图像描述

然后输入 Artifactory 服务器的凭据。 请参见下面的截图。

在此处输入图像描述

  1. 另一种可能的解决方法是创建Artifactory 服务连接并使用Artifactory Nuget任务来恢复您的包。 有关详细信息,请参阅Artifactory Azure DevOps 扩展

JFrog Artifactory扩展安装到您的 azure devops 组织。 然后在您的管道中添加 Artifactory Nuget 任务以恢复您的 package。

Artifactory Nuget 任务中单击+ New以添加 Artifactory 服务连接。

在此处输入图像描述

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM