azure - Web 部署到 Azure 失败 "Could not create SSL/TLS secure channel"

标签 azure ssl cloud webdeploy

我总是从本地计算机部署到 Azure(经典云服务),但从昨天开始我收到此错误:

Could not complete the request to remote agent URL 'https://[MYNAME].cloudapp.net:8172/msdeploy.axd?site=Default Web Site'.The request was aborted: Could not create SSL/TLS secure channel

端口已打开。 Web 部署已安装。据我所知,一切都没有改变。 我尝试安装新版本的 Web Deploy (3.6),但没有帮助。

还有什么可以检查的?

谢谢。

最佳答案

我遇到了同样的问题:旧的 2008 r2 服务器从未改变任何内容

原因(推测):从 Visual Studio 15.9 开始,他们禁用了 SSL 2.0、TLS 1.0 等,因此它无法与旧的 webdeploy 正确通信

解决方案:在旧的网络服务器上启用 TLS 1.2(并禁用旧的)

我找到了这个链接:https://developercommunity.visualstudio.com/content/problem/384634/webdeploy-netcore-api-to-iis-vs159.html

链接到此博客: https://tecadmin.net/enable-tls-on-windows-server-and-iis/

Step 1 – Backup Registry Settings We strongly recommend taking a backup of the registry before making any changes. Use below link to find steps to how to export registry values.

Step 2 – Enable TLS 1.2 on Windows You have two options to enable TLS version on your system.

Option 1 – Merge Resistry File Download the Enable-TLS12-Windows.reg and Enable-TLS12-TLS11-Windows.reg files on your Windows system. Now right click on file and click Merge.

第 3 步:重新启动。

PS:首先我尝试了“客户端”方式,这对我不起作用。但也许它对某些人有帮助:

我在此线程上找到了答案:https://stackoverflow.com/a/40050789/9624651 他引用了这个链接https://dougrathbone.com/blog/2016/02/28/pci-compliant-web-deploy-getting-webdeploy-working-after-disabling-insecure-ciphers-like-ssl-30-and-tls-10

关于azure - Web 部署到 Azure 失败 "Could not create SSL/TLS secure channel",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53352947/

相关文章:

azure - MS Bot Composer 自定义操作示例返回空引用异常

php - 使用 PHP 将密码安全地发送到 LDAP 服务器

powershell - 将 .vhd 镜像从 Azure 下载到本地计算机,然后上传到另一个 Azure 帐户

ubuntu - 使端口 443 免费

azure - 是否可通过 Windows Azure Pack 或 App Fabric 获取适用于本地解决方案的 Azure 辅助角色

linux - 我可以DIY一个Windows云服务器吗?

Azure 翻译器 OAuth token GET api 不起作用

azure - 如何在 Azure VM 中阻止除单个 IP 之外的所有人的互联网

c# - 使用 UseWindowsAzureActiveDirectoryBearerAuthentication 从 Azure 使用 Id_token

使用 Eclipse Paho JavaScript 客户端的 SSL/TLS