Tfs 如何使用Azure DevOps迁移工具跳过SSL/TLS验证?

Tfs 如何使用Azure DevOps迁移工具跳过SSL/TLS验证?,tfs,azure-devops-migration-tools,Tfs,Azure Devops Migration Tools,我正在使用v11.9.47.0从https://azdevopsA/collectionA 到https://azdevopsB/collectionB (两个Azure DevOps均为2019内部部署),但出现错误。当我运行命令时: .\migration.exe execute --config .\configuration.json 将显示以下异常: MigrationClient: Connecting to https://azdevopsA/collectionA/ [15:

我正在使用v11.9.47.0从https://azdevopsA/collectionA 到https://azdevopsB/collectionB (两个Azure DevOps均为2019内部部署),但出现错误。当我运行命令时:

.\migration.exe execute --config .\configuration.json
将显示以下异常:

MigrationClient: Connecting to https://azdevopsA/collectionA/

[15:38:29 ERR] Unable to configure store

Microsoft.TeamFoundation.TeamFoundationServiceUnavailableException: TF400324: Azure DevOps services are not available from server https://azdevopsA/collectionA/. Technical information (for administrator):

The underlying connection was closed: Could not establish trust relationship for the SSL / TLS secure channel. ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL / TLS secure channel.
---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.

我将自签名证书导入证书链,没有任何问题。我可以在浏览器中无需SSL/TLS验证即可访问页面,但当我尝试使用migration.exe工具时,会出现上述问题。

连接失败可能是由于客户端和/或服务器配置为仅协商TLS 1.2。您可以在以下情况下检查解决方案:

因为Windows PowerShell在.NET Framework 4.5上运行,而.NET Framework 4.5没有 默认情况下启用TLS 1.2,它无法建立连接

对于每个脚本/每个会话修复,请运行以下命令以启用 TLS 1.2支持:

[Net.ServicePointManager]::SecurityProtocol=[Net.ServicePointManager]::SecurityProtocol-bor [Net.SecurityProtocolType]::Tls12

可以找到有关.NET Framework版本和TLS的更多信息 在这里:


没有得到你的最新信息。只是想看看下面的答案是否对你有帮助?如果是的话,你可以,这也可以为其他谁与你有相同的难题,我们可以存档此线程受益。此外,如果您还有任何疑问,请随时在下面留言:-)