大网数据广告活动
服务器运维问答

Windows Server Reaches out to WindowsUpdate during TLS negotation

· 52CE 我爱测

We deploy hardened Windows Server 2022 servers in AWS. These servers reach out to RDS servers using a TLS encrypted channel. During the TLS negotiation, the Windows server is reaching out to Windows Update , presumably to get a c…

问题原文

原帖链接 · Prof Von Lemongargle · CC BY-SA 4.0

We deploy hardened Windows Server 2022 servers in AWS. These servers reach out to RDS servers using a TLS encrypted channel. During the TLS negotiation, the Windows server is reaching out to Windows Update, presumably to get a current list of trusted root authorities (we found this by watching network traffic with Wireshark - it was very repeatable). These servers do not have any access to the public internet, so the download times out. The connection to the database times out before the windows update download times out, so the database access fails.

In the old days (say Windows Server 2012 era), there was a registry setting that you could use to control how certificates were verified. I think you could specify 1-5 and it would behave differently depending on how you would pick that. I don't think that had to do with the trusted root update as much as whether it reached out to download a CRL.

My question is "Does anyone know how to stop Windows from downloading a list of trusted roots during the TLS handshake and force trust of the server certificate presented by RDS?" Or some other way to make this connection happen without public Internet access.

已采纳解答

原帖链接 · Greg Askew · CC BY-SA 4.0

All Windows hosts, server and desktop, will attempt to update root certificates. There is a setting to prevent that specific communication.

https://woshub.com/updating-trusted-root-certificates-in-windows-10/#h2_2

Computer Configuration -> Administrative Templates -> System -> Internet Communication Management -> Internet Communication.

The Turn off Automatic Root Certificates Update option in this section allows you to disable automatic updating of root certificates through the Windows Update sites. By default, this policy is not configured and Windows always tries to automatically renew root certificates.


You can also use certutil to download the updated list of trusted root certificates, and store those locally in a path specified by Group Policy.

https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/dn265983(v=ws.11)

https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/dn265983(v=ws.11)#registry-settings-modified

Registry values:

HKLMSOFTWARE\Policies\Microsoft\SystemCertificates\AuthRoot!DisableRootAutoUpdate

A value of 1 disables the Windows AutoUpdate of the trusted CTL.

HKLM\SOFTWARE\Policies\Microsoft\SystemCertificates\AuthRoot!EnableDisallowedCertAutoUpdate

A value of 1 enables the Windows AutoUpdate of the untrusted CTL.

HKLM\SOFTWARE\Microsoft\SystemCertificates\AuthRoot\AutoUpdate!RootDirUrl

Configures the shared location (the HTTP or the FILE path).

Probably worth mentioning that this does not cover CRL/AIA access.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2023-07-03)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。