gpt4 book ai didi

ssl - 服务器上已更改的 SSL/TLS 现在无法通过 visual studio 发布

转载 作者:太空宇宙 更新时间:2023-11-03 12:52:27 25 4
gpt4 key购买 nike

我创建了一个新服务器来将我们的 Windows 2008 服务器迁移到 Windows 2012R2。几天来,我毫无问题地发布到新服务器并测试了该站点。我在测试期间意识到此服务器的 SSL 和 TLS1.0 仍处于打开状态。

我找到了 IIS Crypto并将值设置为最佳实践:

enter image description here

像假人一样,我在更改之前没有打印屏幕。

当我现在尝试发布时,我收到了这条消息:

enter image description here

到目前为止我已经尝试过,其中一些只是出于习惯:1.重启visual studio2.重启IIS3.重启主机服务器4.禁用防火墙并在未启用的情况下测试发布5. 检查 IIS 日志,那里没有显示6.查看事件查看器,那里没有消息

这是我收到的消息:

Error   2   Web deployment task failed. (Could not complete the request to remote agent URL 'https://<site>:8172/MsDeploy.axd?site=<site>'.)
This error indicates that you cannot connect to the server. Make sure the service URL is correct, firewall and network settings on this computer and on the server computer are configured properly, and the appropriate services have been started on the server.
Error details:
Could not complete the request to remote agent URL 'https://<site>:8172/MsDeploy.axd?<site>'.
The underlying connection was closed: An unexpected error occurred on a send.
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
An existing connection was forcibly closed by the remote host 0 0 SuburbanCustPortal

我尝试发布到 http 而不是 https,我收到了相同的消息。

接下来我应该看哪里,或者有人有任何想法吗?

注意#1

我在根目录下创建了一个 test.html 文件,我可以通过 https 和 http 查看我网站上的文件。该站点可以访问,至少可以从端口 443 和 80 访问。

最佳答案

我在这里找到了答案:

http://www.diaryofaninja.com/blog/2016/02/28/pci-compliant-web-deploy-getting-webdeploy-working-after-disabling-insecure-ciphers-like-ssl-30-and-tls-10

It turns out that after much stuffing around on my servers, the issue actually lies with the client doing the deploying.

The issue lies in .Net and it’s default settings for use of SSL.

By default .Net has a setting called “useStrongCrypto” that allows the client PC to use TLS 1.1 and higher.

To enable secure your local client PC to use TLS 1.1 and higher (or as Microsoft terms is “strong crypto”) you need to edit the following registry entries:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319]
"SchUseStrongCrypto"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319]
"SchUseStrongCrypto"=dword:00000001

我重新启动了 visual studio 并能够发布。

关于ssl - 服务器上已更改的 SSL/TLS 现在无法通过 visual studio 发布,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40048583/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com