大网数据广告活动
域与目录服务

Configure NDES for SID certificate requests in Windows Server

· 52CE 我爱测

Learn how to configure Network Device Enrollment Service (NDES) to handle certificate requests that contain security identifier (SID) information.

Applies to: Windows Server 2012 and later versions

By default, Network Device Enrollment Service (NDES) rejects certificate enrollment requests that contain security identifier (SID) information in either the Subject Alternative Name (SAN) extension or a separate SID extension, unless you configure a custom NDES policy module. This behavior is one of several changes introduced in the October 2026 Windows Server security updates to address CVE-2026-69802. These changes help prevent certificate-based impersonation attacks.

In this article, you learn how to configure NDES to allow certificate enrollment requests that contain SID information when a trusted component validates that information.

Security considerations

During certificate-based authentication, the Kerberos Key Distribution Center (KDC) uses SID information in a certificate to establish a strong mapping between the certificate and the authenticating security principal.

An attacker who can supply arbitrary SID information in a certificate enrollment request might obtain a certificate associated with another security principal and impersonate that principal. NDES can't independently verify that the supplied SID belongs to the intended security principal.

You can use a custom NDES policy module to perform additional validation of certificate enrollment requests, including verifying that the supplied SID is associated with the intended security principal. For more information, see Use a policy module with Network Device Enrollment Service.

If you validate SID information through a trusted mechanism other than a custom NDES policy module, administrators can use the registry settings described in the next section to allow these requests.

Configure NDES to allow SID information in requests

Warning: When you enable these settings, NDES accepts requests that contain SID information without independently validating the supplied SID. Incorrect or insufficient validation might allow attackers to impersonate other security principals, potentially leading to elevation of privilege, including domain administrator privileges.

Enable these settings only when a trusted component, such as a mobile device management (MDM) solution, validates the SID information by using a mechanism other than a custom policy module.

Registry path:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\MSCEP\OverrideSecureSettings
Value name Type Value Description
AllowSIDInSANURI REG_DWORD 1 Allows requests that contain SID information in the SAN URI.
AllowSIDExtensionInRequest REG_DWORD 1 Allows requests that contain SID information in the NTDS CA security extension.

Configure only the registry values that correspond to the SID format included in your certificate enrollment requests:

  • SID in a SAN URI: Set AllowSIDInSANURI to 1.
  • SID in the NTDS CA security extension: Set AllowSIDExtensionInRequest to 1.
  • Both formats: Set both registry values to 1.

To apply the registry changes, reset Internet Information Services (IIS) or restart the NDES server. To reset IIS, run the following command from an elevated command prompt:

iisreset

Event reference

When NDES rejects a certificate enrollment request that contains SID information, it logs one of the following events in the Application event log. The event depends on how the request includes the SID information.

Event ID 59: Request contains a SID certificate extension

Information Details
Event log Application
Event type Error
Event source Microsoft-Windows-NetworkDeviceEnrollmentService
Event ID 59
Event text The Network Device Enrollment Service rejected a certificate request because it contained a security identifier (SID) certificate extension. The SID extension must not be present in SCEP requests when no custom policy module is registered to validate it.

Event ID 60: Request contains SID information in a SAN URI

Information Details
Event log Application
Event type Error
Event source Microsoft-Windows-NetworkDeviceEnrollmentService
Event ID 60
Event text The Network Device Enrollment Service rejected a certificate request because the Subject Alternative Name (SAN) extension contained a URI entry with a security identifier (SID). SID values must not be present in SCEP request SAN entries when no custom policy module is registered to validate them.

Related content

Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 11/05/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

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

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